Class 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 Detail

      • NegTokenTarg

        public NegTokenTarg()
    • Method Detail

      • writeGss

        protected void writeGss​(Buffer<?> buffer,
                                com.hierynomus.asn1.types.ASN1Object<?> negToken)
                         throws java.io.IOException
        Overrides:
        writeGss in class SpnegoToken
        Throws:
        java.io.IOException
      • 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)