|
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.ServerMechanism
|
+--gnu.crypto.sasl.crammd5.CramMD5Server
The CRAM-MD5 SASL server-side mechanism.
| Field Summary |
|---|
| Fields inherited from class gnu.crypto.sasl.ServerMechanism |
|---|
authenticator, authorizationID, channelBinding, complete, handler, mechanism, properties, protocol, serverName, state |
| Constructor Summary | |
|---|---|
CramMD5Server()
|
|
| Method Summary | |
|---|---|
byte[] |
evaluateResponse(byte[] response)
Evaluates the response data and generates a challenge. |
protected java.lang.String |
getNegotiatedQOP()
|
protected void |
initMechanism()
|
boolean |
isComplete()
Determines if the authentication exchange has completed. |
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.SaslServer |
|---|
dispose, getAuthorizationID, getMechanismName, getNegotiatedProperty, unwrap, wrap |
| Constructor Detail |
public CramMD5Server()
| Method Detail |
protected void initMechanism()
throws SaslException
initMechanism in class ServerMechanismSaslException
protected void resetMechanism()
throws SaslException
resetMechanism in class ServerMechanismSaslException
public byte[] evaluateResponse(byte[] response)
throws SaslException
SaslServernull if the authentication has succeeded and
no more challenge data is to be sent to the client. It is non-null if the
authentication must be continued by sending a challenge to the client, or
if the authentication has succeeded but challenge data needs to be
processed by the client. SaslServer.isComplete() should be called after each
call to evaluateResponse(),to determine if any further
response is needed from the client.
evaluateResponse in interface SaslServerevaluateResponse in class ServerMechanismresponse - the non-null (but possibly empty) response sent by the
client.
null challenge to send to the client.
It is null if the authentication has succeeded and there is
no more challenge data to be sent to the client.
SaslException - if an error occurred while processing the response
or generating a challenge.public boolean isComplete()
SaslServerSaslServer.evaluateResponse(byte[])
to determine whether the authentication has completed successfully or
should be continued.
isComplete in interface SaslServerisComplete in class ServerMechanismtrue if the authentication exchange has completed;
false otherwise.protected java.lang.String getNegotiatedQOP()
getNegotiatedQOP in class ServerMechanism
|
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 | ||||||||||