public interface Authenticator
DefaultPartitionNexus.
Authenticators are registered to and configured by
AuthenticationInterceptor interceptor.
AuthenticationInterceptor authenticates users by calling
#authenticate(DN,ServerContext), and then Authenticator
checks JNDI Context environment properties
(Context.SECURITY_PRINCIPAL and Context.SECURITY_CREDENTIALS)
of current Context.
AbstractAuthenticator| Modifier and Type | Method and Description |
|---|---|
LdapPrincipal |
authenticate(BindOperationContext opContext)
Performs authentication and returns the principal if succeeded.
|
void |
destroy()
Called by
AuthenticationInterceptor to indicate that this
authenticator is being removed from service. |
String |
getAuthenticatorType()
Returns the type of this authenticator (e.g.
|
void |
init(DirectoryService directoryService)
Called by
AuthenticationInterceptor to indicate that this
authenticator is being placed into service. |
void |
invalidateCache(org.apache.directory.shared.ldap.name.DN bindDn)
Callback used to respond to password changes by invalidating a password
cache if implemented.
|
String getAuthenticatorType()
void init(DirectoryService directoryService) throws Exception
AuthenticationInterceptor to indicate that this
authenticator is being placed into service.Exceptionvoid destroy()
AuthenticationInterceptor to indicate that this
authenticator is being removed from service.void invalidateCache(org.apache.directory.shared.ldap.name.DN bindDn)
bindDn - the already normalized distinguished name of the bind principalLdapPrincipal authenticate(BindOperationContext opContext) throws Exception
ExceptionCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.