public class NegTokenInit
extends java.lang.Object
* Contains the details of an SPNEGO NegTokenInit blob for use with CIFS.
Constructor and Description |
---|
NegTokenInit()
Class constructor for decoding
|
NegTokenInit(org.ietf.jgss.Oid[] mechTypes,
java.lang.String mechPrincipal)
Class constructor for encoding
|
NegTokenInit(java.util.Vector mechTypes,
java.lang.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
|
org.ietf.jgss.Oid |
getOidAt(int idx)
Return the specified OID
|
org.ietf.jgss.Oid[] |
getOids()
Return the mechTypes OID list
|
java.lang.String |
getPrincipal()
Return the mechListMIC principal
|
boolean |
hasOid(org.ietf.jgss.Oid oid)
Check if the OID list contains the specified OID
|
int |
numberOfOids()
Return the count of OIDs
|
java.lang.String |
toString()
Return the NegTokenInit object as a string
|
public NegTokenInit()
public NegTokenInit(org.ietf.jgss.Oid[] mechTypes, java.lang.String mechPrincipal)
mechTypes
- Oid[]mechPrincipal
- Stringpublic NegTokenInit(java.util.Vector mechTypes, java.lang.String mechPrincipal)
mechTypes
- VectormechPrincipal
- Stringpublic final org.ietf.jgss.Oid[] getOids()
public final int getContextFlags()
public final byte[] getMechtoken()
public final java.lang.String getPrincipal()
public final boolean hasOid(org.ietf.jgss.Oid oid)
oid
- Oidpublic final int numberOfOids()
public final org.ietf.jgss.Oid getOidAt(int idx)
idx
- intpublic void decode(byte[] buf, int off, int len) throws java.io.IOException
buf
- byte[]off
- intlen
- intjava.io.IOException
public byte[] encode() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.