For the latest news and information visit
The GNU Crypto project

gnu.crypto.sasl.crammd5
Class CramMD5Server

java.lang.Object
  extended bygnu.crypto.sasl.ServerMechanism
      extended bygnu.crypto.sasl.crammd5.CramMD5Server
All Implemented Interfaces:
javax.security.sasl.SaslServer

public class CramMD5Server
extends ServerMechanism
implements javax.security.sasl.SaslServer

The CRAM-MD5 SASL server-side mechanism.

Version:
$Revision: 1.2 $

Field Summary
 
Fields inherited from class gnu.crypto.sasl.ServerMechanism
authenticator, authorizationID, complete, handler, mechanism, properties, protocol, serverName, state
 
Constructor Summary
CramMD5Server()
           
 
Method Summary
 byte[] evaluateResponse(byte[] response)
           
protected  java.lang.String getNegotiatedQOP()
           
protected  void initMechanism()
           
 boolean isComplete()
           
protected  void resetMechanism()
           
 
Methods inherited from class gnu.crypto.sasl.ServerMechanism
dispose, engineUnwrap, engineWrap, getAuthorizationID, getMechanismName, getNegotiatedMaxBuffer, getNegotiatedPolicyForwardSecrecy, getNegotiatedPolicyNoActive, getNegotiatedPolicyNoAnonymous, getNegotiatedPolicyNoDictionary, getNegotiatedPolicyNoPlainText, getNegotiatedPolicyPassCredentials, getNegotiatedProperty, getNegotiatedRawSendSize, getNegotiatedServerAuth, getNegotiatedStrength, getReuse, init, reset, unwrap, wrap
 
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

CramMD5Server

public CramMD5Server()
Method Detail

initMechanism

protected void initMechanism()
                      throws javax.security.sasl.SaslException
Specified by:
initMechanism in class ServerMechanism
Throws:
javax.security.sasl.SaslException

resetMechanism

protected void resetMechanism()
                       throws javax.security.sasl.SaslException
Specified by:
resetMechanism in class ServerMechanism
Throws:
javax.security.sasl.SaslException

evaluateResponse

public byte[] evaluateResponse(byte[] response)
                        throws javax.security.sasl.SaslException
Specified by:
evaluateResponse in interface javax.security.sasl.SaslServer
Specified by:
evaluateResponse in class ServerMechanism
Throws:
javax.security.sasl.SaslException

isComplete

public boolean isComplete()
Specified by:
isComplete in interface javax.security.sasl.SaslServer
Overrides:
isComplete in class ServerMechanism

getNegotiatedQOP

protected java.lang.String getNegotiatedQOP()
Overrides:
getNegotiatedQOP in class ServerMechanism

For the latest news and information visit
The GNU Crypto project

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.