org.apache.directory.server.ldap.handlers.bind
Class CramMd5MechanismHandler

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

public class CramMd5MechanismHandler
extends java.lang.Object
implements MechanismHandler

The CRAM-MD Sasl mechanism handler.

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

Field Summary
 
Fields inherited from interface org.apache.directory.server.ldap.handlers.bind.MechanismHandler
SASL_CONTEXT
 
Constructor Summary
CramMd5MechanismHandler()
           
 
Method Summary
 javax.security.sasl.SaslServer handleMechanism(org.apache.mina.common.IoSession session, org.apache.directory.shared.ldap.message.BindRequest bindRequest)
          Implementors will use the session and message to determine what kind of SaslServer to create and what initialization parameters it will require.
 void setDirectoryService(DirectoryService directoryService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CramMd5MechanismHandler

public CramMd5MechanismHandler()
Method Detail

setDirectoryService

public void setDirectoryService(DirectoryService directoryService)

handleMechanism

public javax.security.sasl.SaslServer handleMechanism(org.apache.mina.common.IoSession session,
                                                      org.apache.directory.shared.ldap.message.BindRequest 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.

Specified by:
handleMechanism in interface MechanismHandler
Returns:
The SaslServer to use for the duration of the bound session.
Throws:
java.lang.Exception


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.