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, onRemove
public static final java.lang.String CONSTRAINT
public void init(SecurityProvider securityProvider, ConfigurationParameters config)
AbstractAuthorizableAction
init
in interface AuthorizableAction
init
in class AbstractAuthorizableAction
public void onCreate(User user, java.lang.String password, Root root, NamePathMapper namePathMapper) throws RepositoryException
AbstractAuthorizableAction
onCreate
in interface AuthorizableAction
onCreate
in class AbstractAuthorizableAction
user
- 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
AbstractAuthorizableAction
onPasswordChange
in interface AuthorizableAction
onPasswordChange
in class AbstractAuthorizableAction
user
- 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 - 2020 Adobe Systems Incorporated. All Rights Reserved"