| java.lang.Object com.sun.security.sasl.CramMD5Base com.sun.security.sasl.CramMD5Client
CramMD5Client | final class CramMD5Client extends CramMD5Base implements SaslClient(Code) | | Implements the CRAM-MD5 SASL client-side mechanism.
(RFC 2195).
CRAM-MD5 has no initial response. It receives bytes from
the server as a challenge, which it hashes by using MD5 and the password.
It concatenates the authentication ID with this result and returns it
as the response to the challenge. At that point, the exchange is complete.
author: Vincent Ryan author: Rosanna Lee |
Constructor Summary | |
| CramMD5Client(String authID, byte[] pw) Creates a SASL mechanism with client credentials that it needs
to participate in CRAM-MD5 authentication exchange with the server.
Parameters: authID - A non-null string representing the principal being authenticated. Parameters: pw - A non-null String or byte[]containing the password. |
Method Summary | |
public byte[] | evaluateChallenge(byte[] challengeData) Processes the challenge data.
The server sends a challenge data using which the client must
compute an MD5-digest with its password as the key.
Parameters: challengeData - A non-null byte array containing the challenge data from the server. | public boolean | hasInitialResponse() CRAM-MD5 has no initial response. |
CramMD5Client | CramMD5Client(String authID, byte[] pw) throws SaslException(Code) | | Creates a SASL mechanism with client credentials that it needs
to participate in CRAM-MD5 authentication exchange with the server.
Parameters: authID - A non-null string representing the principal being authenticated. Parameters: pw - A non-null String or byte[]containing the password. If it is an array, it is first cloned. |
evaluateChallenge | public byte[] evaluateChallenge(byte[] challengeData) throws SaslException(Code) | | Processes the challenge data.
The server sends a challenge data using which the client must
compute an MD5-digest with its password as the key.
Parameters: challengeData - A non-null byte array containing the challenge data from the server. A non-null byte array containing the response to be sent to the server. throws: SaslException - If platform does not have MD5 support |
hasInitialResponse | public boolean hasInitialResponse()(Code) | | CRAM-MD5 has no initial response.
|
|
|