org.jboss.security.negotiation.spnego
Class SPNEGOMessageFactory

java.lang.Object
  extended by org.jboss.security.negotiation.MessageFactory
      extended by org.jboss.security.negotiation.spnego.SPNEGOMessageFactory

public class SPNEGOMessageFactory
extends MessageFactory

The message factory for reading SPNEGO messages from InputStreams and creating the Java representation of the message.

Since:
10th August 2008
Version:
$Revision: 77129 $
Author:
darran.lofthouse@jboss.com

Constructor Summary
SPNEGOMessageFactory()
           
 
Method Summary
 boolean accepts(InputStream in)
          Peek at the data in the InputStream and return true if this MessageFactory can handle the data.
 NegotiationMessage createMessage(InputStream in)
          Read the message from the InputStream and create the Java representation of the message.
 
Methods inherited from class org.jboss.security.negotiation.MessageFactory
newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPNEGOMessageFactory

public SPNEGOMessageFactory()
Method Detail

accepts

public boolean accepts(InputStream in)
                throws IOException
Description copied from class: MessageFactory
Peek at the data in the InputStream and return true if this MessageFactory can handle the data.

Specified by:
accepts in class MessageFactory
Throws:
IOException

createMessage

public NegotiationMessage createMessage(InputStream in)
                                 throws IOException
Description copied from class: MessageFactory
Read the message from the InputStream and create the Java representation of the message.

Specified by:
createMessage in class MessageFactory
Throws:
IOException


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.