org.apache.directory.server.ldap.handlers.bind.digestMD5
Class DigestMd5CallbackHandler
java.lang.Object
org.apache.directory.server.ldap.handlers.bind.AbstractSaslCallbackHandler
org.apache.directory.server.ldap.handlers.bind.digestMD5.DigestMd5CallbackHandler
- All Implemented Interfaces:
- CallbackHandler
public class DigestMd5CallbackHandler
- extends AbstractSaslCallbackHandler
- Author:
- Apache Directory Project
|
Method Summary |
protected void |
authorize(AuthorizeCallback authorizeCB)
Final check to authorize user. |
protected org.apache.directory.shared.ldap.model.entry.Attribute |
lookupPassword(String username,
String realm)
Implementors set the password based on a lookup, using the username and
realm as keys. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DigestMd5CallbackHandler
public DigestMd5CallbackHandler(LdapSession ldapSession,
CoreSession adminSession,
org.apache.directory.shared.ldap.model.message.BindRequest bindRequest)
- Creates a new instance of DigestMd5CallbackHandler.
- Parameters:
ldapSession - the mina IoSessionadminSession - the admin sessionbindRequest - the bind message
lookupPassword
protected org.apache.directory.shared.ldap.model.entry.Attribute lookupPassword(String username,
String realm)
- Description copied from class:
AbstractSaslCallbackHandler
- Implementors set the password based on a lookup, using the username and
realm as keys.
- For DIGEST-MD5, lookup password based on username and realm.
- For CRAM-MD5, lookup password based on username.
- For GSSAPI, this callback is unused.
- Specified by:
lookupPassword in class AbstractSaslCallbackHandler
- Parameters:
username - The username.realm - The realm.
- Returns:
- The Password entry attribute resulting from the lookup. It may contain more than one password
authorize
protected void authorize(AuthorizeCallback authorizeCB)
- Description copied from class:
AbstractSaslCallbackHandler
- Final check to authorize user. Used by all SASL mechanisms. This
is the only callback used by GSSAPI.
Implementors use setAuthorizedID() to set the base Dn after canonicalization.
Implementors must setAuthorized() to
true if authentication was successful.
- Specified by:
authorize in class AbstractSaslCallbackHandler
- Parameters:
authorizeCB - An AuthorizeCallback.
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.