public class DigestMd5CallbackHandler extends AbstractSaslCallbackHandler
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
bindDn |
private static org.slf4j.Logger |
LOG |
private org.apache.directory.api.ldap.model.schema.SchemaManager |
schemaManager
A SchemaManager instance
|
adminSession, bindRequest, directoryService, ldapSession| Constructor and Description |
|---|
DigestMd5CallbackHandler(LdapSession ldapSession,
CoreSession adminSession,
org.apache.directory.api.ldap.model.message.BindRequest bindRequest)
Creates a new instance of DigestMd5CallbackHandler.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
authorize(javax.security.sasl.AuthorizeCallback authorizeCB)
Final check to authorize user.
|
protected org.apache.directory.api.ldap.model.entry.Attribute |
lookupPassword(java.lang.String username,
java.lang.String realm)
Implementors set the password based on a lookup, using the username and
realm as keys.
|
getContext, getEnvironment, getRealm, getUsername, handleprivate static final org.slf4j.Logger LOG
private java.lang.String bindDn
private org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager
public DigestMd5CallbackHandler(LdapSession ldapSession, CoreSession adminSession, org.apache.directory.api.ldap.model.message.BindRequest bindRequest)
ldapSession - the mina IoSessionadminSession - the admin sessionbindRequest - the bind messageprotected org.apache.directory.api.ldap.model.entry.Attribute lookupPassword(java.lang.String username,
java.lang.String realm)
AbstractSaslCallbackHandlerlookupPassword in class AbstractSaslCallbackHandlerusername - The username.realm - The realm.protected void authorize(javax.security.sasl.AuthorizeCallback authorizeCB)
AbstractSaslCallbackHandlertrue if authentication was successful.authorize in class AbstractSaslCallbackHandlerauthorizeCB - An AuthorizeCallback.