public class SimpleMechanismHandler extends Object implements MechanismHandler
Constructor and Description |
---|
SimpleMechanismHandler() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup(LdapSession ldapSession)
Clean the Sasl properties when the use has been authenticated
|
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
|
public SaslServer handleMechanism(LdapSession ldapSession, org.apache.directory.shared.ldap.message.internal.InternalBindRequest bindRequest) throws Exception
MechanismHandler
SaslServer
to create and what initialization parameters it will require.handleMechanism
in interface MechanismHandler
SaslServer
to use for the duration of the bound session.Exception
public void init(LdapSession ldapSession)
init
in interface MechanismHandler
ldapSession
- the Ldapsession instancepublic void cleanup(LdapSession ldapSession)
cleanup
in interface MechanismHandler
ldapSession
- the Ldapsession instanceCopyright © 2003-2013 Apache Software Foundation. All Rights Reserved.