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(@NotNull User user,
@Nullable java.lang.String password,
@NotNull Root root,
@NotNull NamePathMapper namePathMapper)
Doesn't perform any action.
|
void |
onPasswordChange(@NotNull User user,
@Nullable java.lang.String newPassword,
@NotNull Root root,
@NotNull 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(@NotNull
@NotNull User user,
@Nullable
@Nullable java.lang.String password,
@NotNull
@NotNull Root root,
@NotNull
@NotNull 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(@NotNull
@NotNull User user,
@Nullable
@Nullable java.lang.String newPassword,
@NotNull
@NotNull Root root,
@NotNull
@NotNull 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 - 2023 Adobe. All Rights Reserved