public static class AggregateDnResolver.AuthenticationHandler extends Object implements AuthenticationHandler
AggregateDnResolver to authenticate the resolved DN. In particular, the
resolved DN is expected to be of the form: label:DN where the label indicates the authentication handler to use.
This class only invokes one authentication handler that matches the label found on the DN.| Modifier and Type | Field and Description |
|---|---|
private Map<String,AuthenticationHandler> |
authenticationHandlers
Labeled authentication handlers.
|
protected Logger |
logger
Logger for this class.
|
| Constructor and Description |
|---|
AuthenticationHandler()
Default constructor.
|
AuthenticationHandler(Map<String,AuthenticationHandler> handlers)
Creates a new aggregate authentication handler.
|
| Modifier and Type | Method and Description |
|---|---|
AuthenticationHandlerResponse |
authenticate(AuthenticationCriteria criteria)
Perform an ldap authentication.
|
Map<String,AuthenticationHandler> |
getAuthenticationHandlers()
Returns the authentication handlers to aggregate over.
|
void |
setAuthenticationHandlers(Map<String,AuthenticationHandler> handlers)
Sets the authentication handlers to aggregate over.
|
protected final Logger logger
private Map<String,AuthenticationHandler> authenticationHandlers
public AuthenticationHandler()
public AuthenticationHandler(Map<String,AuthenticationHandler> handlers)
handlers - authentication handlerspublic Map<String,AuthenticationHandler> getAuthenticationHandlers()
public void setAuthenticationHandlers(Map<String,AuthenticationHandler> handlers)
handlers - to setpublic AuthenticationHandlerResponse authenticate(AuthenticationCriteria criteria) throws LdapException
AuthenticationHandlerauthenticate in interface AuthenticationHandlercriteria - to perform the authentication withLdapException - if ldap operation failsCopyright © 2003-2019 Virginia Tech. All Rights Reserved.