|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.auth.AbstractAuthenticationHandler
public abstract class AbstractAuthenticationHandler
Base class for an LDAP authentication implementations.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class. |
| Constructor Summary | |
|---|---|
AbstractAuthenticationHandler()
|
|
| Method Summary | |
|---|---|
AuthenticationHandlerResponse |
authenticate(AuthenticationCriteria ac)
Perform an ldap authentication. |
protected abstract AuthenticationHandlerResponse |
authenticateInternal(Connection c,
AuthenticationCriteria criteria)
Authenticate on the supplied connection using the supplied criteria. |
RequestControl[] |
getAuthenticationControls()
Returns the controls for this authentication handler. |
protected abstract Connection |
getConnection()
Returns a connection that the authentication operation should be performed on. |
void |
setAuthenticationControls(RequestControl... c)
Sets the controls for this authentication handler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
public AbstractAuthenticationHandler()
| Method Detail |
|---|
public RequestControl[] getAuthenticationControls()
public void setAuthenticationControls(RequestControl... c)
c - controls to set
public AuthenticationHandlerResponse authenticate(AuthenticationCriteria ac)
throws LdapException
authenticate in interface AuthenticationHandlerac - to perform the authentication with
LdapException - if ldap operation fails
protected abstract Connection getConnection()
throws LdapException
LdapException - if an error occurs provisioning the connection
protected abstract AuthenticationHandlerResponse authenticateInternal(Connection c,
AuthenticationCriteria criteria)
throws LdapException
c - to authenticate oncriteria - criteria to authenticate with
LdapException - if the authentication fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||