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

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

public class SimpleMechanismHandler
extends java.lang.Object
implements MechanismHandler

A Dummy mechanism handler for Simple mechanism: not really used but needed for the mechanism map.

Version:
$$Rev$$
Author:
Apache Directory Project
'XBean'

Constructor Summary
SimpleMechanismHandler()
           
 
Method Summary
 void cleanup(LdapSession ldapSession)
          Clean the Sasl properties when the use has been authenticated
 javax.security.sasl.SaslServer handleMechanism(LdapSession ldapSession, 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 init(LdapSession ldapSession)
          Initialize the saslProperties with some mechanism's specific data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMechanismHandler

public SimpleMechanismHandler()
Method Detail

handleMechanism

public javax.security.sasl.SaslServer handleMechanism(LdapSession ldapSession,
                                                      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

init

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

Specified by:
init in interface MechanismHandler
Parameters:
ldapSession - the Ldapsession instance

cleanup

public void cleanup(LdapSession ldapSession)
Clean the Sasl properties when the use has been authenticated

Specified by:
cleanup in interface MechanismHandler
Parameters:
ldapSession - the Ldapsession instance


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