Package jcifs.spnego
Class NegTokenInit
- java.lang.Object
-
- jcifs.spnego.SpnegoToken
-
- jcifs.spnego.NegTokenInit
-
public class NegTokenInit extends SpnegoToken
SPNEGO initial token
-
-
Field Summary
Fields Modifier and Type Field Description static intANONYMITYstatic intCONFIDENTIALITYstatic intDELEGATIONstatic intINTEGRITYstatic intMUTUAL_AUTHENTICATIONstatic intREPLAY_DETECTIONstatic intSEQUENCE_CHECKING
-
Constructor Summary
Constructors Constructor Description NegTokenInit()NegTokenInit(byte[] token)NegTokenInit(org.bouncycastle.asn1.ASN1ObjectIdentifier[] mechanisms, int contextFlags, byte[] mechanismToken, byte[] mechanismListMIC)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetContextFlag(int flag)intgetContextFlags()org.bouncycastle.asn1.ASN1ObjectIdentifier[]getMechanisms()protected voidparse(byte[] token)voidsetContextFlag(int flag, boolean value)voidsetContextFlags(int contextFlags)voidsetMechanisms(org.bouncycastle.asn1.ASN1ObjectIdentifier[] mechanisms)byte[]toByteArray()StringtoString()-
Methods inherited from class jcifs.spnego.SpnegoToken
getMechanismListMIC, getMechanismToken, setMechanismListMIC, setMechanismToken
-
-
-
-
Field Detail
-
DELEGATION
public static final int DELEGATION
- See Also:
- Constant Field Values
-
MUTUAL_AUTHENTICATION
public static final int MUTUAL_AUTHENTICATION
- See Also:
- Constant Field Values
-
REPLAY_DETECTION
public static final int REPLAY_DETECTION
- See Also:
- Constant Field Values
-
SEQUENCE_CHECKING
public static final int SEQUENCE_CHECKING
- See Also:
- Constant Field Values
-
ANONYMITY
public static final int ANONYMITY
- See Also:
- Constant Field Values
-
CONFIDENTIALITY
public static final int CONFIDENTIALITY
- See Also:
- Constant Field Values
-
INTEGRITY
public static final int INTEGRITY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NegTokenInit
public NegTokenInit()
-
NegTokenInit
public NegTokenInit(org.bouncycastle.asn1.ASN1ObjectIdentifier[] mechanisms, int contextFlags, byte[] mechanismToken, byte[] mechanismListMIC)
-
NegTokenInit
public NegTokenInit(byte[] token) throws IOException- Throws:
IOException
-
-
Method Detail
-
getContextFlags
public int getContextFlags()
-
setContextFlags
public void setContextFlags(int contextFlags)
-
getContextFlag
public boolean getContextFlag(int flag)
-
setContextFlag
public void setContextFlag(int flag, boolean value)
-
getMechanisms
public org.bouncycastle.asn1.ASN1ObjectIdentifier[] getMechanisms()
-
setMechanisms
public void setMechanisms(org.bouncycastle.asn1.ASN1ObjectIdentifier[] mechanisms)
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
toByteArray
public byte[] toByteArray()
- Specified by:
toByteArrayin classSpnegoToken
-
parse
protected void parse(byte[] token) throws IOException- Specified by:
parsein classSpnegoToken- Throws:
IOException
-
-