java.lang.Object | |
↳ | sun.security.jgss.spnego.SpNegoContext |
Implements the mechanism specific context class for SPNEGO GSS-API mechanism
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for SpNegoContext to be called on the context initiator's
side.
| |||||||||||
Constructor for SpNegoContext to be called on the context acceptor's
side.
| |||||||||||
Constructor for SpNegoContext to import a previously exported context.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Acceptor's context establishment call.
| |||||||||||
Releases context resources and terminates the
context between 2 peer.
| |||||||||||
Produces a token representing this context.
| |||||||||||
Is confidentiality available?
| |||||||||||
Is credential delegation enabled?
| |||||||||||
Returns the delegated credential for the context.
| |||||||||||
Is integrity available?
| |||||||||||
The lifetime remaining for this context.
| |||||||||||
Applies per-message integrity services.
| |||||||||||
Returns the mechanism oid.
| |||||||||||
Is mutual authentication enabled? Since this is from the client's
perspective, it essentially meas that the server is being
authenticated.
| |||||||||||
Is replay detection enabled on the GSS wrap and MIC tokens?
We enable replay detection if sequence checking is enabled.
| |||||||||||
Is sequence checking enabled on the GSS Wrap and MIC tokens?
We enable sequence checking if replay detection is enabled.
| |||||||||||
Queries the context for largest data size to accomodate
the specified protection and for the token to remain less then
maxTokSize.
| |||||||||||
Initiator context establishment call.
| |||||||||||
Tests if this is the initiator side of the context.
| |||||||||||
Tests if the context can be used for per-message service.
| |||||||||||
Requests that confidentiality be available.
| |||||||||||
Requests that credential delegation be done during context
establishment.
| |||||||||||
Requests that integrity be available.
| |||||||||||
Requests the desired lifetime.
| |||||||||||
Requests that mutual authentication be done during context
establishment.
| |||||||||||
Requests that replay detection be done on the GSS wrap and MIC
tokens.
| |||||||||||
Requests that sequence checking be done on the GSS wrap and MIC
tokens.
| |||||||||||
Sets the channel bindings to be used during context
establishment.
| |||||||||||
For apps that want simplicity and dont care about buffer copies.
| |||||||||||
Retrieves the message token previously encapsulated in the wrap
call.
| |||||||||||
Checks the integrity of the supplied tokens.
| |||||||||||
For apps that want simplicity and don't care about buffer copies.
| |||||||||||
Provides per-message token encapsulation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructor for SpNegoContext to be called on the context initiator's side.
GSSException |
---|
Constructor for SpNegoContext to be called on the context acceptor's side.
GSSException |
---|
Constructor for SpNegoContext to import a previously exported context.
GSSException |
---|
Acceptor's context establishment call. This method may be required to be called several times. A CONTINUE_NEEDED return call indicates that more calls are needed after the next token is received from the peer.
is | contains the token received from the peer. |
---|---|
mechTokenSize | the size of the inner context token as read by the GSS-Framework from the mechanism independent GSS-API level header. |
GSSException |
---|
Releases context resources and terminates the context between 2 peer.
GSSException |
---|
Produces a token representing this context. After this call the context will no longer be usable until an import is performed on the returned token.
GSSException |
---|
Is confidentiality available?
Is credential delegation enabled?
Returns the delegated credential for the context. This is an optional feature of contexts which not all mechanisms will support. A context can be requested to support credential delegation by using the CRED_DELEG. This is only valid on the acceptor side of the context.
GSSException | |
GSSException |
Is integrity available?
The lifetime remaining for this context.
GSSException |
---|
Applies per-message integrity services.
is | the user-provided message |
---|---|
os | the token to be sent to the peer along with the message token. The message token is not encapsulated. |
msgProp | on input the desired QOP and output the applied QOP |
GSSException |
---|
Is mutual authentication enabled? Since this is from the client's perspective, it essentially meas that the server is being authenticated.
Is replay detection enabled on the GSS wrap and MIC tokens? We enable replay detection if sequence checking is enabled.
Is sequence checking enabled on the GSS Wrap and MIC tokens? We enable sequence checking if replay detection is enabled.
Queries the context for largest data size to accomodate the specified protection and for the token to remain less then maxTokSize.
qop | the quality of protection that the context will be asked to provide. |
---|---|
confReq | a flag indicating whether confidentiality will be requested or not |
GSSException |
---|
Initiator context establishment call. This method may be required to be called several times. A CONTINUE_NEEDED return call indicates that more calls are needed after the next token is received from the peer.
is | contains the token received from the peer. On the first call it will be ignored. |
---|---|
mechTokenSize | the size of the inner context token as read by the GSS-Framework from the mechanism independent GSS-API level header. |
GSSException |
---|
Tests if this is the initiator side of the context.
Tests if the context can be used for per-message service. Context may allow the calls to the per-message service functions before being fully established.
Requests that confidentiality be available.
GSSException |
---|
Requests that credential delegation be done during context establishment.
GSSException |
---|
Requests that integrity be available.
GSSException |
---|
Requests the desired lifetime. Can only be used on the context initiator's side.
GSSException |
---|
Requests that mutual authentication be done during context establishment. Since this is fromm the client's perspective, it essentially requests that the server be authenticated.
GSSException |
---|
Requests that replay detection be done on the GSS wrap and MIC tokens.
GSSException |
---|
Requests that sequence checking be done on the GSS wrap and MIC tokens.
GSSException |
---|
Sets the channel bindings to be used during context establishment.
GSSException |
---|
For apps that want simplicity and dont care about buffer copies.
GSSException |
---|
Retrieves the message token previously encapsulated in the wrap call.
is | the token from the peer |
---|---|
os | unprotected message data |
msgProp | will contain the applied qop and confidentiality of the input token and any informatory status values |
GSSException |
---|
Checks the integrity of the supplied tokens. This token was previously generated by getMIC.
is | token generated by getMIC |
---|---|
msgStr | the message to check integrity for |
GSSException |
---|
GSSException |
---|
For apps that want simplicity and don't care about buffer copies.
GSSException |
---|
Provides per-message token encapsulation.
is | the user-provided message to be protected |
---|---|
os | the token to be sent to the peer. It includes the message from is with the requested protection. |
GSSException |
---|