| Modifier and Type | Field and Description |
|---|---|
| private CallbackHandler | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements javax. |
| public byte[] | evaluateChallenge(byte[]
The non-null challenge sent from the server.
The challenge array may have zero length. challenge)Implements javax. |
| public String | getMechanismName()
Implements javax. |
| public Object | getNegotiatedProperty(String
The non-null property name. propName)Implements javax. |
| public boolean | hasInitialResponse()
Implements javax. |
| public boolean | isComplete()
Implements javax. |
| public byte[] | unwrap(byte[]
A non-null byte array containing the encoded bytes
from the server. incoming, int The starting position at offset, int incoming of the bytes to use.The number of bytes from len)incoming to use.Implements javax. |
| public byte[] | wrap(byte[]
A non-null byte array containing the bytes to encode. outgoing, int The starting position at offset, int outgoing of the bytes to use.The number of bytes from len)outgoing to use.Implements javax. |
| cbh | back to summary |
|---|---|
| private CallbackHandler cbh | |
| complete | back to summary |
|---|---|
| private boolean complete | |
| OAuth2SaslClient | back to summary |
|---|---|
| public OAuth2SaslClient(Map<String, ?> props, CallbackHandler cbh) | |
| dispose | back to summary |
|---|---|
| public void dispose() throws SaslException Implements javax. Doc from javax. Disposes of any system resources or security-sensitive information the SaslClient might be using. Invoking this method invalidates the SaslClient instance. This method is idempotent.
| |
| evaluateChallenge | back to summary |
|---|---|
| public byte[] evaluateChallenge(byte[] challenge) throws SaslException Implements javax. Doc from javax. Evaluates the challenge data and generates a response. If a challenge is received from the server during the authentication process, this method is called to prepare an appropriate next response to submit to the server.
| |
| getMechanismName | back to summary |
|---|---|
| public String getMechanismName() Implements javax. Doc from javax. Returns the IANA-registered mechanism name of this SASL client. (e.g. "CRAM-MD5", "GSSAPI"). | |
| getNegotiatedProperty | back to summary |
|---|---|
| public Object getNegotiatedProperty(String propName) Implements javax. Doc from javax. Retrieves the negotiated property.
This method can be called only after the authentication exchange has
completed (i.e., when
The | |
| hasInitialResponse | back to summary |
|---|---|
| public boolean hasInitialResponse() Implements javax. Doc from javax. Determines whether this mechanism has an optional initial response.
If true, caller should call
| |
| isComplete | back to summary |
|---|---|
| public boolean isComplete() Implements javax. Doc from javax. Determines whether the authentication exchange has completed. This method may be called at any time, but typically, it will not be called until the caller has received indication from the server (in a protocol-specific manner) that the exchange has completed.
| |
| unwrap | back to summary |
|---|---|
| public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException Implements javax. Doc from javax. Unwraps a byte array received from the server.
This method can be called only after the authentication exchange has
completed (i.e., when
| |
| wrap | back to summary |
|---|---|
| public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException Implements javax. Doc from javax. Wraps a byte array to be sent to the server.
This method can be called only after the authentication exchange has
completed (i.e., when
The result of this method will make up the contents of the SASL buffer
as defined in RFC 2222 without the leading four octet field that
represents the length.
| |