public class NegTokenInit extends Object
* Contains the details of an SPNEGO NegTokenInit blob for use with CIFS.
| Constructor and Description |
|---|
NegTokenInit()
Class constructor for decoding
|
NegTokenInit(Oid[] mechTypes,
String mechPrincipal)
Class constructor for encoding
|
NegTokenInit(Vector mechTypes,
String mechPrincipal)
Class constructor for encoding
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(byte[] buf,
int off,
int len)
Decode an SPNEGO NegTokenInit blob
|
byte[] |
encode()
Encode an SPNEGO NegTokenInit blob
|
int |
getContextFlags()
Return the context flags
|
byte[] |
getMechtoken()
Return the mechToken
|
Oid |
getOidAt(int idx)
Return the specified OID
|
Oid[] |
getOids()
Return the mechTypes OID list
|
String |
getPrincipal()
Return the mechListMIC principal
|
boolean |
hasOid(Oid oid)
Check if the OID list contains the specified OID
|
int |
numberOfOids()
Return the count of OIDs
|
String |
toString()
Return the NegTokenInit object as a string
|
public NegTokenInit()
public NegTokenInit(Oid[] mechTypes, String mechPrincipal)
mechTypes - Oid[]mechPrincipal - Stringpublic final Oid[] getOids()
public final int getContextFlags()
public final byte[] getMechtoken()
public final String getPrincipal()
public final boolean hasOid(Oid oid)
oid - Oidpublic final int numberOfOids()
public final Oid getOidAt(int idx)
idx - intpublic void decode(byte[] buf,
int off,
int len)
throws IOException
buf - byte[]off - intlen - intIOExceptionpublic byte[] encode()
throws IOException
IOExceptionCopyright © 2005–2015 Alfresco Software. All rights reserved.