APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.jgss.spnego

public Class NegTokenInit

extends SpNegoToken
Class Inheritance
Imports
org.ietf.jgss.GSSException, .Oid, sun.security.jgss.GSSUtil, sun.security.util.*, java.io.IOException

Implements the SPNEGO NegTokenInit token as specified in RFC 2478 NegTokenInit ::= SEQUENCE { mechTypes [0] MechTypeList OPTIONAL, reqFlags [1] ContextFlags OPTIONAL, mechToken [2] OCTET STRING OPTIONAL, mechListMIC [3] OCTET STRING OPTIONAL } MechTypeList ::= SEQUENCE OF MechType MechType::= OBJECT IDENTIFIER ContextFlags ::= BIT STRING { delegFlag (0), mutualFlag (1), replayFlag (2), sequenceFlag (3), anonFlag (4), confFlag (5), integFlag (6) }
Author
Seema Malkani
Since
1.6

Field Summary

Modifier and TypeField and Description
private byte[]
private byte[]
private Oid[]
private byte[]
private BitArray
Inherited from sun.security.jgss.spnego.SpNegoToken:
NEG_TOKEN_INIT_IDNEG_TOKEN_TARG_IDOID

Constructor Summary

AccessConstructor and Description
pack-priv
NegTokenInit(byte[] mechTypes, BitArray flags, byte[] token, byte[] mechListMIC)

public
NegTokenInit(byte[] in)

Method Summary

Modifier and TypeMethod and Description
pack-priv final byte[]
encode()

Implements abstract sun.security.jgss.spnego.SpNegoToken.encode.

Returns the individual encoded SPNEGO token

pack-priv byte[]
public byte[]
public Oid[]
pack-priv byte[]
pack-priv BitArray
private void
parseToken(byte[] in)

Inherited from sun.security.jgss.spnego.SpNegoToken:
checkNextFieldgetEncodedgetNegoResultStringgetTokenNamegetType

Field Detail

mechListMICback to summary
private byte[] mechListMIC
mechTokenback to summary
private byte[] mechToken
mechTypeListback to summary
private Oid[] mechTypeList
mechTypesback to summary
private byte[] mechTypes
reqFlagsback to summary
private BitArray reqFlags

Constructor Detail

NegTokenInitback to summary
pack-priv NegTokenInit(byte[] mechTypes, BitArray flags, byte[] token, byte[] mechListMIC)
NegTokenInitback to summary
public NegTokenInit(byte[] in) throws GSSException

Method Detail

encodeback to summary
pack-priv final byte[] encode()

Implements abstract sun.security.jgss.spnego.SpNegoToken.encode.

Doc from sun.security.jgss.spnego.SpNegoToken.encode.

Returns the individual encoded SPNEGO token

getMechListMICback to summary
pack-priv byte[] getMechListMIC()
getMechTokenback to summary
public byte[] getMechToken()
getMechTypeListback to summary
public Oid[] getMechTypeList()
getMechTypesback to summary
pack-priv byte[] getMechTypes()
getReqFlagsback to summary
pack-priv BitArray getReqFlags()
parseTokenback to summary
private void parseToken(byte[] in) throws GSSException