Class NegTokenTarg
java.lang.Object
com.hierynomus.spnego.SpnegoToken
com.hierynomus.spnego.NegTokenTarg
This class can encode and decode the SPNEGO negTokenInit Token.
The entire token is an ASN.1 DER encoded sequence of bytes in little endian byte encoding.
The following if the ASN.1 specification of the full structure of the token:
NegotiationToken ::= CHOICE {
negTokenInit [0] NegTokenInit,
negTokenTarg [1] NegTokenTarg
}
NegTokenTarg ::= SEQUENCE {
negResult [0] ENUMERATED {
accept_completed (0),
accept_incomplete (1),
rejected (2) } OPTIONAL,
supportedMech [1] MechType OPTIONAL,
responseToken [2] OCTET STRING OPTIONAL,
mechListMIC [3] OCTET STRING OPTIONAL
}
MechType ::= OBJECT IDENTIFIER
In the context of this class only the NegTokenTarg is covered.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]byte[]com.hierynomus.asn1.types.primitive.ASN1ObjectIdentifierprotected voidparseTagged(com.hierynomus.asn1.types.constructed.ASN1TaggedObject asn1TaggedObject) read(byte[] bytes) voidsetMechListMic(byte[] mechListMic) voidsetNegotiationResult(BigInteger negotiationResult) voidsetResponseToken(byte[] responseToken) voidsetSupportedMech(com.hierynomus.asn1.types.primitive.ASN1ObjectIdentifier supportedMech) voidprotected voidMethods inherited from class SpnegoToken
parseSpnegoToken
-
Constructor Details
-
NegTokenTarg
public NegTokenTarg()
-
-
Method Details
-
writeGss
protected void writeGss(Buffer<?> buffer, com.hierynomus.asn1.types.ASN1Object<?> negToken) throws IOException - Overrides:
writeGssin classSpnegoToken- Throws:
IOException
-
write
- Specified by:
writein classSpnegoToken- Throws:
SpnegoException
-
read
- Throws:
SpnegoException
-
parseTagged
protected void parseTagged(com.hierynomus.asn1.types.constructed.ASN1TaggedObject asn1TaggedObject) throws SpnegoException - Specified by:
parseTaggedin classSpnegoToken- Throws:
SpnegoException
-
getNegotiationResult
-
setNegotiationResult
-
getSupportedMech
public com.hierynomus.asn1.types.primitive.ASN1ObjectIdentifier getSupportedMech() -
setSupportedMech
public void setSupportedMech(com.hierynomus.asn1.types.primitive.ASN1ObjectIdentifier supportedMech) -
getResponseToken
public byte[] getResponseToken() -
setResponseToken
public void setResponseToken(byte[] responseToken) -
getMechListMic
public byte[] getMechListMic() -
setMechListMic
public void setMechListMic(byte[] mechListMic)
-