| java.lang.Object com.sun.security.sasl.ExternalClient
ExternalClient | final class ExternalClient implements SaslClient(Code) | | Implements the EXTERNAL SASL client mechanism.
(RFC 2222).
The EXTERNAL mechanism returns the optional authorization ID as
the initial response. It processes no challenges.
author: Rosanna Lee |
Constructor Summary | |
| ExternalClient(String authorizationID) Constructs an External mechanism with optional authorization ID. |
Method Summary | |
public void | dispose() | public byte[] | evaluateChallenge(byte[] challengeData) Processes the challenge data.
It returns the EXTERNAL mechanism's initial response,
which is the authorization id encoded in UTF-8.
This is the optional information that is sent along with the SASL command.
After this method is called, isComplete() returns true.
Parameters: challengeData - Ignored. | public String | getMechanismName() Retrieves this mechanism's name for initiating the "EXTERNAL" protocol
exchange. | public Object | getNegotiatedProperty(String propName) Retrieves the negotiated property. | public boolean | hasInitialResponse() This mechanism has an initial response. | public boolean | isComplete() Returns whether this mechanism is complete. | public byte[] | unwrap(byte[] incoming, int offset, int len) Unwraps the incoming buffer. | public byte[] | wrap(byte[] outgoing, int offset, int len) Wraps the outgoing buffer. |
ExternalClient | ExternalClient(String authorizationID) throws SaslException(Code) | | Constructs an External mechanism with optional authorization ID.
Parameters: authorizationID - If non-null, used to specify authorization ID. throws: SaslException - if cannot convert authorizationID into UTF-8representation. |
evaluateChallenge | public byte[] evaluateChallenge(byte[] challengeData) throws SaslException(Code) | | Processes the challenge data.
It returns the EXTERNAL mechanism's initial response,
which is the authorization id encoded in UTF-8.
This is the optional information that is sent along with the SASL command.
After this method is called, isComplete() returns true.
Parameters: challengeData - Ignored. The possible empty initial response. throws: SaslException - If authentication has already been called. |
getMechanismName | public String getMechanismName()(Code) | | Retrieves this mechanism's name for initiating the "EXTERNAL" protocol
exchange.
The string "EXTERNAL". |
getNegotiatedProperty | public Object getNegotiatedProperty(String propName)(Code) | | Retrieves the negotiated property.
This method can be called only after the authentication exchange has
completed (i.e., when isComplete() returns true); otherwise, a
IllegalStateException is thrown.
null No property is applicable to this mechanism. exception: IllegalStateException - if this authentication exchange has not completed |
hasInitialResponse | public boolean hasInitialResponse()(Code) | | This mechanism has an initial response.
|
isComplete | public boolean isComplete()(Code) | | Returns whether this mechanism is complete.
true if initial response has been sent; false otherwise. |
unwrap | public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException(Code) | | Unwraps the incoming buffer.
throws: SaslException - Not applicable to this mechanism. |
wrap | public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException(Code) | | Wraps the outgoing buffer.
throws: SaslException - Not applicable to this mechanism. |
|
|