|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.security.mule.jgss.GSSHeader
public class GSSHeader
This class represents the mechanism independent part of a GSS-API context establishment token. Some mechanisms may choose to encode all subsequent tokens as well such that they start with an encoding of an instance of this class. e.g., The Kerberos v5 GSS-API Mechanism uses this header for all GSS-API tokens.
The format is specified in RFC 2743 section 3.1.
| Field Summary | |
|---|---|
static int |
TOKEN_ID
The tag defined in the GSS-API mechanism independent token format. |
| Constructor Summary | |
|---|---|
GSSHeader(InputStream is)
Reads in a GSSHeader from an InputStream. |
|
GSSHeader(sun.security.util.ObjectIdentifier mechOid,
int mechTokenLength)
Creates a GSSHeader instance whose encoding can be used as the prefix for a particular mechanism token. |
|
| Method Summary | |
|---|---|
int |
encode(OutputStream os)
Encodes this GSSHeader instance onto the provided OutputStream. |
int |
getLength()
Used to obtain the length of the encoding of this GSSHeader. |
static int |
getMaxMechTokenSize(sun.security.util.ObjectIdentifier mechOid,
int maxTotalSize)
Used to determine what the maximum possible mechanism token size is if the complete GSSToken returned to the application (including a GSSHeader) is not to exceed some pre-determined value in size. |
int |
getMechTokenLength()
Used to obtain the length of the mechanism specific token that will follow the encoding of this GSSHeader instance. |
sun.security.util.ObjectIdentifier |
getOid()
Used to obtain the Oid stored in this GSSHeader instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TOKEN_ID
| Constructor Detail |
|---|
public GSSHeader(sun.security.util.ObjectIdentifier mechOid,
int mechTokenLength)
throws IOException
mechOid - the Oid of the mechanism which generated the tokenmechTokenLength - the length of the subsequent portion that
the mechanism will be adding.
IOException
public GSSHeader(InputStream is)
throws IOException,
GSSException
IOException
GSSException| Method Detail |
|---|
public sun.security.util.ObjectIdentifier getOid()
public int getMechTokenLength()
public int getLength()
public static int getMaxMechTokenSize(sun.security.util.ObjectIdentifier mechOid,
int maxTotalSize)
mechOid - the Oid of the mechanism that will generate
this GSS-API tokenmaxTotalSize - the pre-determined value that serves as a
maximum size for the complete GSS-API token (including a
GSSHeader)
public int encode(OutputStream os)
throws IOException
os - the OutputStream to which the token should be written.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||