public static class AggregateDnResolver.AuthenticationResponseHandler extends Object implements AuthenticationResponseHandler
AggregateDnResolver
to execute a list of response handlers. In particular, the
resolved DN is expected to be of the form: label:DN where the label indicates the response handler to use. This
class only invokes the response handlers that matches the label found on the DN.Modifier and Type | Field and Description |
---|---|
protected Logger |
logger
Logger for this class.
|
private Map<String,AuthenticationResponseHandler[]> |
responseHandlers
Labeled entry resolvers.
|
Constructor and Description |
---|
AuthenticationResponseHandler()
Default constructor.
|
AuthenticationResponseHandler(Map<String,AuthenticationResponseHandler[]> handlers)
Creates a new aggregate authentication response handler.
|
Modifier and Type | Method and Description |
---|---|
Map<String,AuthenticationResponseHandler[]> |
getAuthenticationResponseHandlers()
Returns the response handlers to aggregate over.
|
void |
handle(AuthenticationResponse response)
Handle the response from an ldap authentication.
|
void |
setAuthenticationResponseHandlers(Map<String,AuthenticationResponseHandler[]> handlers)
Sets the response handlers to aggregate over.
|
protected final Logger logger
private Map<String,AuthenticationResponseHandler[]> responseHandlers
public AuthenticationResponseHandler()
public AuthenticationResponseHandler(Map<String,AuthenticationResponseHandler[]> handlers)
handlers
- authentication response handlerspublic Map<String,AuthenticationResponseHandler[]> getAuthenticationResponseHandlers()
public void setAuthenticationResponseHandlers(Map<String,AuthenticationResponseHandler[]> handlers)
handlers
- to setpublic void handle(AuthenticationResponse response) throws LdapException
AuthenticationResponseHandler
handle
in interface AuthenticationResponseHandler
response
- produced from an authenticationLdapException
- if an error occurs handling an authentication responseCopyright © 2003-2019 Virginia Tech. All Rights Reserved.