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, wait
authenticate
protected AbstractAuthenticator(String type)
type
- the type of this authenticator (e.g. 'simple', 'none'...)public DirectoryService getDirectoryService()
DirectoryService
for this authenticator.public String getAuthenticatorType()
Authenticator
getAuthenticatorType
in interface Authenticator
public final void init(DirectoryService directoryService) throws Exception
doInit()
method.
Please put your initialization code into doInit()
.init
in interface Authenticator
directoryService
- the directory core for this authenticatorNamingException
- if there is a problem starting up the authenticatorException
protected 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 Authenticator
protected void doDestroy()
public void invalidateCache(org.apache.directory.shared.ldap.name.DN bindDn)
invalidateCache
in interface Authenticator
bindDn
- the already normalized distinguished name of the bind principalCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.