Modifier and Type | Field and Description |
---|---|
private boolean | |
private byte[] |
Access | Constructor and Description |
---|---|
pack-priv | ExternalClient(String
If non-null, used to specify authorization ID. authorizationID)Constructs an External mechanism with optional authorization ID. |
Modifier and Type | Method and Description |
---|---|
public void | dispose()
Implements javax. Disposes of any system resources or security-sensitive information the SaslClient might be using. |
public byte[] | Returns: The possible empty initial response.Ignored. challengeData)Implements javax. Processes the challenge data. |
public String | Returns: The string "EXTERNAL".Implements javax. Retrieves this mechanism's name for initiating the "EXTERNAL" protocol exchange. |
public Object | Returns: null No property is applicable to this mechanism.The non-null property name. propName)Implements javax. Retrieves the negotiated property. |
public boolean | hasInitialResponse()
Implements javax. This mechanism has an initial response. |
public boolean | Returns: true if initial response has been sent; false otherwise.Implements javax. Returns whether this mechanism is complete. |
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. Unwraps the incoming buffer. |
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. Wraps the outgoing buffer. |
completed | back to summary |
---|---|
private boolean completed |
username | back to summary |
---|---|
private byte[] username |
ExternalClient | back to summary |
---|---|
pack-priv ExternalClient(String authorizationID) Constructs an External mechanism with optional authorization ID.
|
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[] challengeData) Implements javax. 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.
|
getMechanismName | back to summary |
---|---|
public String getMechanismName() Implements javax. Retrieves this mechanism's name for initiating the "EXTERNAL" protocol exchange.
|
getNegotiatedProperty | back to summary |
---|---|
public Object getNegotiatedProperty(String propName) Implements javax. Retrieves the negotiated property.
This method can be called only after the authentication exchange has
completed (i.e., when
|
hasInitialResponse | back to summary |
---|---|
public boolean hasInitialResponse() Implements javax. This mechanism has an initial response.
|
isComplete | back to summary |
---|---|
public boolean isComplete() Implements javax. Returns whether this mechanism is complete.
|
unwrap | back to summary |
---|---|
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException Implements javax. Unwraps the incoming buffer.
|
wrap | back to summary |
---|---|
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException Implements javax. Wraps the outgoing buffer.
|