Package com.hierynomus.spnego
Class NegTokenTarg
- java.lang.Object
-
- com.hierynomus.spnego.SpnegoToken
-
- com.hierynomus.spnego.NegTokenTarg
-
public class NegTokenTarg extends SpnegoToken
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 Constructor Description NegTokenTarg()
-
Method Summary
Modifier and Type Method Description byte[]
getMechListMic()
java.math.BigInteger
getNegotiationResult()
byte[]
getResponseToken()
com.hierynomus.asn1.types.primitive.ASN1ObjectIdentifier
getSupportedMech()
protected void
parseTagged(com.hierynomus.asn1.types.constructed.ASN1TaggedObject asn1TaggedObject)
NegTokenTarg
read(byte[] bytes)
void
setMechListMic(byte[] mechListMic)
void
setNegotiationResult(java.math.BigInteger negotiationResult)
void
setResponseToken(byte[] responseToken)
void
setSupportedMech(com.hierynomus.asn1.types.primitive.ASN1ObjectIdentifier supportedMech)
void
write(Buffer<?> buffer)
protected void
writeGss(Buffer<?> buffer, com.hierynomus.asn1.types.ASN1Object<?> negToken)
-
Methods inherited from class com.hierynomus.spnego.SpnegoToken
parseSpnegoToken
-
-
-
-
Method Detail
-
writeGss
protected void writeGss(Buffer<?> buffer, com.hierynomus.asn1.types.ASN1Object<?> negToken) throws java.io.IOException
- Overrides:
writeGss
in classSpnegoToken
- Throws:
java.io.IOException
-
write
public void write(Buffer<?> buffer) throws SpnegoException
- Specified by:
write
in classSpnegoToken
- Throws:
SpnegoException
-
read
public NegTokenTarg read(byte[] bytes) throws SpnegoException
- Throws:
SpnegoException
-
parseTagged
protected void parseTagged(com.hierynomus.asn1.types.constructed.ASN1TaggedObject asn1TaggedObject) throws SpnegoException
- Specified by:
parseTagged
in classSpnegoToken
- Throws:
SpnegoException
-
getNegotiationResult
public java.math.BigInteger getNegotiationResult()
-
setNegotiationResult
public void setNegotiationResult(java.math.BigInteger negotiationResult)
-
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)
-
-