public class GssapiCallbackHandler extends AbstractSaslCallbackHandler
adminSession, bindRequest, directoryService, ldapSession
Constructor and Description |
---|
GssapiCallbackHandler(LdapSession ldapSession,
CoreSession adminSession,
org.apache.directory.api.ldap.model.message.BindRequest bindRequest)
Creates a new instance of GssapiCallbackHandler.
|
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 password)
Implementors set the password based on a lookup, using the username and
realm as keys.
|
getContext, getEnvironment, getRealm, getUsername, handle
public GssapiCallbackHandler(LdapSession ldapSession, CoreSession adminSession, org.apache.directory.api.ldap.model.message.BindRequest bindRequest)
ldapSession
- the mina IO sessionadminSession
- the admin sessionbindRequest
- the bind messageprotected org.apache.directory.api.ldap.model.entry.Attribute lookupPassword(String username, String password)
AbstractSaslCallbackHandler
lookupPassword
in class AbstractSaslCallbackHandler
username
- The username.password
- The realm.protected void authorize(AuthorizeCallback authorizeCB) throws Exception
AbstractSaslCallbackHandler
true
if authentication was successful.authorize
in class AbstractSaslCallbackHandler
authorizeCB
- An AuthorizeCallback
.Exception
- If the authorization failedCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.