org.apache.directory.server.ldap.handlers.bind.digestMD5
Class DigestMd5MechanismHandler

java.lang.Object
  extended by org.apache.directory.server.ldap.handlers.bind.AbstractMechanismHandler
      extended by org.apache.directory.server.ldap.handlers.bind.digestMD5.DigestMd5MechanismHandler
All Implemented Interfaces:
MechanismHandler

public class DigestMd5MechanismHandler
extends AbstractMechanismHandler

The DIGEST-MD5 mechanism handler.

Version:
$Rev$, $Date$
Author:
Apache Directory Project
XBean

Constructor Summary
DigestMd5MechanismHandler()
           
 
Method Summary
 void cleanup(LdapSession ldapSession)
          Remove the Host, UserBaseDn, props and Mechanism property.
 javax.security.sasl.SaslServer handleMechanism(LdapSession ldapSession, org.apache.directory.shared.ldap.message.internal.InternalBindRequest bindRequest)
          Implementors will use the session and message to determine what kind of SaslServer to create and what initialization parameters it will require.
 void init(LdapSession ldapSession)
          Initialize the saslProperties with some mechanism's specific data
 
Methods inherited from class org.apache.directory.server.ldap.handlers.bind.AbstractMechanismHandler
insertSaslFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigestMd5MechanismHandler

public DigestMd5MechanismHandler()
Method Detail

handleMechanism

public javax.security.sasl.SaslServer handleMechanism(LdapSession ldapSession,
                                                      org.apache.directory.shared.ldap.message.internal.InternalBindRequest bindRequest)
                                               throws java.lang.Exception
Description copied from interface: MechanismHandler
Implementors will use the session and message to determine what kind of SaslServer to create and what initialization parameters it will require.

Returns:
The SaslServer to use for the duration of the bound session.
Throws:
java.lang.Exception

init

public void init(LdapSession ldapSession)
Initialize the saslProperties with some mechanism's specific data

Parameters:
ldapSession - the Ldapsession instance

cleanup

public void cleanup(LdapSession ldapSession)
Remove the Host, UserBaseDn, props and Mechanism property.

Parameters:
ldapSession - the LdapSession instance


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.