public class CramMd5CallbackHandler extends AbstractSaslCallbackHandler
adminSession, bindRequest, directoryService, ldapSession
Constructor and Description |
---|
CramMd5CallbackHandler(LdapSession ldapSession,
CoreSession adminSession,
org.apache.directory.api.ldap.model.message.BindRequest bindRequest)
Creates a new instance of CramMd5CallbackHandler.
|
Modifier and Type | Method and Description |
---|---|
protected void |
authorize(AuthorizeCallback authorizeCB)
Final check to authorize user.
|
protected org.apache.directory.api.ldap.model.entry.Attribute |
lookupPassword(String username,
String realm)
Implementors set the password based on a lookup, using the username and
realm as keys.
|
getContext, getEnvironment, getRealm, getUsername, handle
public CramMd5CallbackHandler(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(String username, String realm)
AbstractSaslCallbackHandler
lookupPassword
in class AbstractSaslCallbackHandler
username
- The username.realm
- The realm.protected void authorize(AuthorizeCallback authorizeCB)
AbstractSaslCallbackHandler
true
if authentication was successful.authorize
in class AbstractSaslCallbackHandler
authorizeCB
- An AuthorizeCallback
.Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.