java.lang.Object | |
↳ | sun.security.jgss.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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | TOKEN_ID | The tag defined in the GSS-API mechanism independent token format. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a GSSHeader instance whose encoding can be used as the
prefix for a particular mechanism token.
| |||||||||||
Reads in a GSSHeader from an InputStream.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Encodes this GSSHeader instance onto the provided OutputStream.
| |||||||||||
Used to obtain the length of the encoding of this GSSHeader.
| |||||||||||
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.
| |||||||||||
Used to obtain the length of the mechanism specific token that
will follow the encoding of this GSSHeader instance.
| |||||||||||
Used to obtain the Oid stored in this GSSHeader instance.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The tag defined in the GSS-API mechanism independent token format.
Creates a GSSHeader instance whose encoding can be used as the prefix for a particular mechanism token.
mechOid | the Oid of the mechanism which generated the token |
---|---|
mechTokenLength | the length of the subsequent portion that the mechanism will be adding. |
IOException |
---|
Reads in a GSSHeader from an InputStream. Typically this would be used as part of reading the complete token from an InputStream that is obtained from a socket.
GSSException | |
---|---|
IOException |
Encodes this GSSHeader instance onto the provided OutputStream.
os | the OutputStream to which the token should be written. |
---|
IOException |
---|
Used to obtain the length of the encoding of this GSSHeader.
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.
mechOid | the Oid of the mechanism that will generate this GSS-API token |
---|---|
maxTotalSize | the pre-determined value that serves as a maximum size for the complete GSS-API token (including a GSSHeader) |
Used to obtain the length of the mechanism specific token that will follow the encoding of this GSSHeader instance.
Used to obtain the Oid stored in this GSSHeader instance.