org.jboss.security.negotiation.spnego.encoding
Class NegTokenInitDecoder

java.lang.Object
  extended by org.jboss.security.negotiation.spnego.encoding.NegTokenDecoder
      extended by org.jboss.security.negotiation.spnego.encoding.NegTokenInitDecoder

public class NegTokenInitDecoder
extends NegTokenDecoder

NegTokenInit Decoder.

Author:
Darran Lofthouse

Constructor Summary
NegTokenInitDecoder()
           
 
Method Summary
static NegTokenInit decode(byte[] token)
          Decode the SPNEGO message contained witin the byte[] and return a NegTokenInit object.
static NegTokenInit decode(InputStream is)
           
protected static void decodeMechToken(InputStream is, NegTokenInit negTokenInit)
           
protected static void decodeMechTypes(InputStream is, NegTokenInit negTokenInit)
           
protected static void decodeNegTokenInitSequence(InputStream is, NegTokenInit negTokenInit)
           
protected static void decodeRequestFlags(InputStream is, NegTokenInit negTokenInit)
           
 
Methods inherited from class org.jboss.security.negotiation.spnego.encoding.NegTokenDecoder
readLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegTokenInitDecoder

public NegTokenInitDecoder()
Method Detail

decodeRequestFlags

protected static void decodeRequestFlags(InputStream is,
                                         NegTokenInit negTokenInit)
                                  throws IOException
Throws:
IOException

decodeMechTypes

protected static void decodeMechTypes(InputStream is,
                                      NegTokenInit negTokenInit)
                               throws IOException,
                                      GSSException
Throws:
IOException
GSSException

decodeMechToken

protected static void decodeMechToken(InputStream is,
                                      NegTokenInit negTokenInit)
                               throws IOException
Throws:
IOException

decodeNegTokenInitSequence

protected static void decodeNegTokenInitSequence(InputStream is,
                                                 NegTokenInit negTokenInit)
                                          throws IOException,
                                                 GSSException
Throws:
IOException
GSSException

decode

public static NegTokenInit decode(InputStream is)
                           throws IOException,
                                  GSSException
Throws:
IOException
GSSException

decode

public static NegTokenInit decode(byte[] token)
                           throws IOException,
                                  GSSException
Decode the SPNEGO message contained witin the byte[] and return a NegTokenInit object.

Parameters:
token - - The SPNEGO message contained with a byte[]
Returns:
The decoded NegTokenInit
Throws:
IOException
GSSException


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