public class PasswordValidationAction extends AbstractAuthorizableAction
PasswordValidationAction provides a simple password validation
mechanism with the following configurable option:
Pattern defining validation rules for a password.The password validation is executed on user creation and upon password
change. It throws a ConstraintViolationException if the password
validation fails.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONSTRAINT |
| Constructor and Description |
|---|
PasswordValidationAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(SecurityProvider securityProvider,
ConfigurationParameters config)
Doesn't perform any action.
|
void |
onCreate(User user,
java.lang.String password,
Root root,
NamePathMapper namePathMapper)
Doesn't perform any action.
|
void |
onPasswordChange(User user,
java.lang.String newPassword,
Root root,
NamePathMapper namePathMapper)
Doesn't perform any action.
|
onCreate, onRemovepublic static final java.lang.String CONSTRAINT
public void init(SecurityProvider securityProvider, ConfigurationParameters config)
AbstractAuthorizableActioninit in interface AuthorizableActioninit in class AbstractAuthorizableActionpublic void onCreate(User user, java.lang.String password, Root root, NamePathMapper namePathMapper) throws RepositoryException
AbstractAuthorizableActiononCreate in interface AuthorizableActiononCreate in class AbstractAuthorizableActionuser - The new user that has not yet been persisted;
e.g. the associated tree is still 'NEW'.password - The password that was specified upon user creation.root - The root associated with the user manager.RepositoryException - If an error occurs.public void onPasswordChange(User user, java.lang.String newPassword, Root root, NamePathMapper namePathMapper) throws RepositoryException
AbstractAuthorizableActiononPasswordChange in interface AuthorizableActiononPasswordChange in class AbstractAuthorizableActionuser - The user that whose password is going to change.newPassword - The new password as specified in User.changePassword(java.lang.String)root - The root associated with the user manager.RepositoryException - If an exception or error occurs."Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"