public class SimpleMechanismHandler extends java.lang.Object implements MechanismHandler
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
The logger instance
|
| Constructor and Description |
|---|
SimpleMechanismHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(LdapSession ldapSession)
Clean the Sasl properties when the use has been authenticated
|
javax.security.sasl.SaslServer |
handleMechanism(LdapSession ldapSession,
org.apache.directory.api.ldap.model.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
|
public javax.security.sasl.SaslServer handleMechanism(LdapSession ldapSession, org.apache.directory.api.ldap.model.message.BindRequest bindRequest) throws java.lang.Exception
MechanismHandlerSaslServer to create and what initialization parameters it will require.handleMechanism in interface MechanismHandlerSaslServer to use for the duration of the bound session.java.lang.Exceptionpublic void init(LdapSession ldapSession)
init in interface MechanismHandlerldapSession - the Ldapsession instancepublic void cleanup(LdapSession ldapSession)
cleanup in interface MechanismHandlerldapSession - the Ldapsession instance