public class DefaultAccountStateHandler extends Object implements AccountStateHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger
Logger instance.
|
| Constructor and Description |
|---|
DefaultAccountStateHandler() |
| Modifier and Type | Method and Description |
|---|---|
List<Message> |
handle(org.ldaptive.auth.AuthenticationResponse response,
LdapPasswordPolicyConfiguration configuration)
Handles the account state producing an error or warning messages as appropriate to the state.
|
protected void |
handleError(org.ldaptive.auth.AccountState.Error error,
org.ldaptive.auth.AuthenticationResponse response,
LdapPasswordPolicyConfiguration configuration,
List<Message> messages)
Handle an account state error produced by ldaptive account state machinery.
|
protected void |
handleWarning(org.ldaptive.auth.AccountState.Warning warning,
org.ldaptive.auth.AuthenticationResponse response,
LdapPasswordPolicyConfiguration configuration,
List<Message> messages)
Handle an account state warning produced by ldaptive account state machinery.
|
public List<Message> handle(org.ldaptive.auth.AuthenticationResponse response, LdapPasswordPolicyConfiguration configuration) throws LoginException
AccountStateHandlerhandle in interface AccountStateHandlerresponse - LDAP authentication response containing attributes, response controls, and account state that
can be used to determine user account state.configuration - Password policy configuration.LoginException - When account state causes authentication failure.protected void handleError(org.ldaptive.auth.AccountState.Error error,
org.ldaptive.auth.AuthenticationResponse response,
LdapPasswordPolicyConfiguration configuration,
List<Message> messages)
throws LoginException
Override this method to provide custom error handling.
error - Account state error.response - Ldaptive authentication response.configuration - Password policy configuration.messages - Container for messages produced by account state error handling.LoginException - On errors that should be communicated as login exceptions.protected void handleWarning(org.ldaptive.auth.AccountState.Warning warning,
org.ldaptive.auth.AuthenticationResponse response,
LdapPasswordPolicyConfiguration configuration,
List<Message> messages)
Override this method to provide custom warning message handling.
error - Account state warning.response - Ldaptive authentication response.configuration - Password policy configuration.messages - Container for messages produced by account state warning handling.Copyright © 2004-2015 Jasig. All Rights Reserved.