public class OptionalWarningAccountStateHandler extends DefaultAccountStateHandler
warningAttributeNamesetWarningAttributeValue(String) warningAttributeValue}displayWarningOnMatch
Deployers MUST configure LDAP components to provide warningAttributeName in the set of attributes
returned from the LDAP query for user details.
logger| Constructor and Description |
|---|
OptionalWarningAccountStateHandler() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
setDisplayWarningOnMatch(boolean displayWarningOnMatch)
Determines whether password expiration warnings are opt-in or opt-out.
|
void |
setWarningAttributeName(String warningAttributeName)
Sets the user attribute used to determine whether to display password expiration warnings.
|
void |
setWarningAttributeValue(String warningAttributeValue)
Sets the value of
warningAttributeName used as basis of comparison. |
handle, handleErrorpublic void setWarningAttributeName(String warningAttributeName)
warningAttributeName - Attribute on authenticated user entry.public void setWarningAttributeValue(String warningAttributeValue)
warningAttributeName used as basis of comparison.warningAttributeValue - Value to match against.public void setDisplayWarningOnMatch(boolean displayWarningOnMatch)
displayWarningOnMatch - True to opt into password expiration warnings on match, false to opt out on match.
Default is true.protected void handleWarning(org.ldaptive.auth.AccountState.Warning warning,
org.ldaptive.auth.AuthenticationResponse response,
LdapPasswordPolicyConfiguration configuration,
List<Message> messages)
DefaultAccountStateHandlerOverride this method to provide custom warning message handling.
handleWarning in class DefaultAccountStateHandlerresponse - Ldaptive authentication response.configuration - Password policy configuration.messages - Container for messages produced by account state warning handling.Copyright © 2004-2015 Jasig. All Rights Reserved.