public abstract class AbstractCompareAuthenticationHandler extends AbstractAuthenticationHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractCompareAuthenticationHandler.Scheme
Represents a password scheme used for attribute comparison.
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_ATTRIBUTE
Default password attribute.
|
protected static String |
DEFAULT_SCHEME
Default password scheme.
|
private String |
passwordAttribute
Password attribute.
|
private AbstractCompareAuthenticationHandler.Scheme |
passwordScheme
Password scheme.
|
logger| Constructor and Description |
|---|
AbstractCompareAuthenticationHandler() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
authenticate, getAuthenticationControls, processRequestControls, setAuthenticationControlsprotected static final String DEFAULT_SCHEME
protected static final String DEFAULT_ATTRIBUTE
private AbstractCompareAuthenticationHandler.Scheme passwordScheme
private String passwordAttribute
public AbstractCompareAuthenticationHandler()
public String getPasswordScheme()
public void setPasswordScheme(String s)
s - password schemepublic String getPasswordAttribute()
public void setPasswordAttribute(String s)
s - password attributeprotected AuthenticationHandlerResponse authenticateInternal(Connection c, AuthenticationCriteria criteria) throws LdapException
AbstractAuthenticationHandlerauthenticateInternal in class AbstractAuthenticationHandlerc - to authenticate oncriteria - criteria to authenticate withLdapException - if the authentication failsprotected byte[] digestCredential(Credential credential, String algorithm) throws LdapException
credential - to digestalgorithm - type of digest to useLdapException - if the supplied algorithm cannot be foundprotected abstract Connection getConnection() throws LdapException
getConnection in class AbstractAuthenticationHandlerLdapException - if an error occurs provisioning the connectionCopyright © 2003-2019 Virginia Tech. All Rights Reserved.