| java.lang.Object sun.security.jgss.GSSToken sun.security.jgss.spnego.SpNegoToken
All known Subclasses: sun.security.jgss.spnego.NegTokenInit, sun.security.jgss.spnego.NegTokenTarg,
SpNegoToken | abstract class SpNegoToken extends GSSToken (Code) | | Astract class for SPNEGO tokens.
Implementation is based on RFC 2478
NegotiationToken ::= CHOICE {
negTokenInit [0] NegTokenInit,
negTokenTarg [1] NegTokenTarg }
author: Seema Malkani version: 1.8, 05/05/07 since: 1.6 |
Inner Class :static enum NegoResult | |
Constructor Summary | |
protected | SpNegoToken(int tokenType) Creates SPNEGO token of the specified type. |
DEBUG | final static boolean DEBUG(Code) | | |
NEG_TOKEN_INIT_ID | final static int NEG_TOKEN_INIT_ID(Code) | | |
NEG_TOKEN_TARG_ID | final static int NEG_TOKEN_TARG_ID(Code) | | |
OID | public static ObjectIdentifier OID(Code) | | The object identifier corresponding to the SPNEGO GSS-API
mechanism.
|
SpNegoToken | protected SpNegoToken(int tokenType)(Code) | | Creates SPNEGO token of the specified type.
|
encode | abstract byte[] encode() throws GSSException(Code) | | Returns the individual encoded SPNEGO token
the encoded token exception: GSSException - |
getEncoded | byte[] getEncoded() throws IOException, GSSException(Code) | | Returns the encoded SPNEGO token
Note: inserts the required CHOICE tags
the encoded token exception: GSSException - |
getNegoResultString | static String getNegoResultString(int result)(Code) | | Returns a string representing the negotiation result.
Parameters: result - the negotiated result the String message of this negotiated result |
getNegoResultType | static NegoResult getNegoResultType(int result)(Code) | | Returns the enumerated type of the Negotiation result.
Parameters: result - the negotiated result represented by integer the enumerated type of Negotiated result |
getTokenName | static String getTokenName(int type)(Code) | | Returns a string representing the token type.
Parameters: tokenType - the token type for which a string name is desired the String name of this token type |
getType | final int getType()(Code) | | Returns the SPNEGO token type
the token type |
Methods inherited from sun.security.jgss.GSSToken | final public static void debug(String str)(Code)(Java Doc) final public static String getHexBytes(byte[] bytes)(Code)(Java Doc) final public static String getHexBytes(byte[] bytes, int len)(Code)(Java Doc) final public static String getHexBytes(byte[] bytes, int pos, int len)(Code)(Java Doc) final public static int readBigEndian(byte[] data, int pos, int size)(Code)(Java Doc) final public static void readFully(InputStream is, byte[] buffer) throws IOException(Code)(Java Doc) final public static void readFully(InputStream is, byte[] buffer, int offset, int len) throws IOException(Code)(Java Doc) final public static int readInt(InputStream is) throws IOException(Code)(Java Doc) final public static int readInt(byte[] src, int pos)(Code)(Java Doc) final public static int readLittleEndian(byte[] data, int pos, int size)(Code)(Java Doc) final public static void writeBigEndian(int value, byte[] array)(Code)(Java Doc) final public static void writeBigEndian(int value, byte[] array, int pos)(Code)(Java Doc) final public static void writeInt(int val, OutputStream os) throws IOException(Code)(Java Doc) final public static int writeInt(int val, byte[] dest, int pos)(Code)(Java Doc) final public static void writeLittleEndian(int value, byte[] array)(Code)(Java Doc) final public static void writeLittleEndian(int value, byte[] array, int pos)(Code)(Java Doc)
|
|
|