public abstract class AbstractAuthenticator extends Object implements Authenticator
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAuthenticator(String type)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Calls
doDestroy() method, and clears default properties
(factoryConfiguration and configuration). |
protected void |
doDestroy()
Implement your deinitialization code here.
|
protected void |
doInit()
Implement your initialization code here.
|
String |
getAuthenticatorType()
Returns the type of this authenticator (e.g.
|
DirectoryService |
getDirectoryService()
Returns
DirectoryService for this authenticator. |
void |
init(DirectoryService directoryService)
Initializes (directoryService and and calls
doInit() method. |
void |
invalidateCache(org.apache.directory.shared.ldap.name.DN bindDn)
Does nothing leaving it so subclasses can override.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticateprotected AbstractAuthenticator(String type)
type - the type of this authenticator (e.g. 'simple', 'none'...)public DirectoryService getDirectoryService()
DirectoryService for this authenticator.public String getAuthenticatorType()
AuthenticatorgetAuthenticatorType in interface Authenticatorpublic final void init(DirectoryService directoryService) throws Exception
doInit() method.
Please put your initialization code into doInit().init in interface AuthenticatordirectoryService - the directory core for this authenticatorNamingException - if there is a problem starting up the authenticatorExceptionprotected void doInit()
public final void destroy()
doDestroy() method, and clears default properties
(factoryConfiguration and configuration).
Please put your deinitialization code into doDestroy().destroy in interface Authenticatorprotected void doDestroy()
public void invalidateCache(org.apache.directory.shared.ldap.name.DN bindDn)
invalidateCache in interface AuthenticatorbindDn - the already normalized distinguished name of the bind principalCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.