|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.authn.AbstractAuthenticator
public abstract class AbstractAuthenticator
Base class for all Authenticators.
Constructor Summary | |
---|---|
protected |
AbstractAuthenticator(java.lang.String type)
Creates a new instance. |
Method Summary | |
---|---|
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. |
java.lang.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.LdapDN bindDn)
Does nothing leaving it so subclasses can override. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.directory.server.core.authn.Authenticator |
---|
authenticate |
Constructor Detail |
---|
protected AbstractAuthenticator(java.lang.String type)
type
- the type of this authenticator (e.g. 'simple', 'none'...)Method Detail |
---|
public DirectoryService getDirectoryService()
DirectoryService
for this authenticator.
public java.lang.String getAuthenticatorType()
Authenticator
getAuthenticatorType
in interface Authenticator
public final void init(DirectoryService directoryService) throws java.lang.Exception
doInit()
method.
Please put your initialization code into doInit()
.
init
in interface Authenticator
directoryService
- the directory core for this authenticator
javax.naming.NamingException
- if there is a problem starting up the authenticator
java.lang.Exception
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.LdapDN bindDn)
invalidateCache
in interface Authenticator
bindDn
- the already normalized distinguished name of the bind principal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |