|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.auth.AbstractAuthenticationHandler
org.ldaptive.auth.AbstractCompareAuthenticationHandler
public abstract class AbstractCompareAuthenticationHandler
Provides implementation common to compare authentication handlers.
| Nested Class Summary | |
|---|---|
static class |
AbstractCompareAuthenticationHandler.Scheme
Represents a password scheme used for attribute comparison. |
| Field Summary | |
|---|---|
protected static String |
DEFAULT_ATTRIBUTE
Default password attribute. |
protected static String |
DEFAULT_SCHEME
Default password scheme. |
| Fields inherited from class org.ldaptive.auth.AbstractAuthenticationHandler |
|---|
logger |
| Constructor Summary | |
|---|---|
AbstractCompareAuthenticationHandler()
|
|
| Method Summary | |
|---|---|
protected AuthenticationHandlerResponse |
authenticateInternal(Connection c,
AuthenticationCriteria criteria)
Authenticate on the supplied connection using the supplied criteria. |
protected byte[] |
digestCredential(Credential credential,
String algorithm)
Digests the supplied credential using the supplied algorithm. |
protected abstract Connection |
getConnection()
Returns a connection that the compare operation should be performed on. |
String |
getPasswordAttribute()
Returns the password attribute. |
String |
getPasswordScheme()
Returns the password scheme. |
void |
setPasswordAttribute(String s)
Sets the password attribute. |
void |
setPasswordScheme(String s)
Sets the password scheme. |
| Methods inherited from class org.ldaptive.auth.AbstractAuthenticationHandler |
|---|
authenticate, getAuthenticationControls, processRequestControls, setAuthenticationControls |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String DEFAULT_SCHEME
protected static final String DEFAULT_ATTRIBUTE
| Constructor Detail |
|---|
public AbstractCompareAuthenticationHandler()
| Method Detail |
|---|
public String getPasswordScheme()
public void setPasswordScheme(String s)
s - password schemepublic String getPasswordAttribute()
public void setPasswordAttribute(String s)
s - password attribute
protected AuthenticationHandlerResponse authenticateInternal(Connection c,
AuthenticationCriteria criteria)
throws LdapException
authenticateInternal in class AbstractAuthenticationHandlerc - to authenticate oncriteria - criteria to authenticate with
LdapException - if the authentication fails
protected byte[] digestCredential(Credential credential,
String algorithm)
throws LdapException
credential - to digestalgorithm - type of digest to use
LdapException - if the supplied algorithm cannot be found
protected abstract Connection getConnection()
throws LdapException
getConnection in class AbstractAuthenticationHandlerLdapException - if an error occurs provisioning the connection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||