|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--gnu.crypto.sasl.ClientMechanism
|
+--gnu.crypto.sasl.crammd5.CramMD5Client
The CRAM-MD5 SASL client-side mechanism.
| Field Summary |
|---|
| Fields inherited from class gnu.crypto.sasl.ClientMechanism |
|---|
authorizationID, channelBinding, complete, handler, mechanism, properties, protocol, serverName, state |
| Constructor Summary | |
|---|---|
CramMD5Client()
|
|
| Method Summary | |
|---|---|
byte[] |
evaluateChallenge(byte[] challenge)
Evaluates the challenge data and generates a response. |
protected java.lang.String |
getNegotiatedQOP()
|
boolean |
hasInitialResponse()
Determines if this mechanism has an optional initial response. |
protected void |
initMechanism()
|
protected void |
resetMechanism()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.security.sasl.SaslClient |
|---|
dispose, getMechanismName, getNegotiatedProperty, isComplete, unwrap, wrap |
| Constructor Detail |
public CramMD5Client()
| Method Detail |
protected void initMechanism()
throws SaslException
initMechanism in class ClientMechanismSaslException
protected void resetMechanism()
throws SaslException
resetMechanism in class ClientMechanismSaslExceptionpublic boolean hasInitialResponse()
SaslClienttrue, caller should call SaslClient.evaluateChallenge(byte[])
with an empty array to get the initial response.
hasInitialResponse in interface SaslClienthasInitialResponse in class ClientMechanismtrue if this mechanism has an initial response.
public byte[] evaluateChallenge(byte[] challenge)
throws SaslException
SaslClient
evaluateChallenge in interface SaslClientevaluateChallenge in class ClientMechanismchallenge - the non-null challenge sent from the server. The
challenge array may have zero length.
null reponse to send to the server. It
is null if the challenge accompanied a "SUCCESS" status and
the challenge only contains data for the client to update its state and no
response needs to be sent to the server. The response is a zero-length
byte array if the client is to send a response with no data.
SaslException - if an error occurred while processing the challenge
or generating a response.protected java.lang.String getNegotiatedQOP()
getNegotiatedQOP in class ClientMechanism
|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||