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 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,
String password,
org.apache.jackrabbit.oak.api.Root root,
org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
Doesn't perform any action.
|
void |
onPasswordChange(User user,
String newPassword,
org.apache.jackrabbit.oak.api.Root root,
org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
Doesn't perform any action.
|
onCreate, onRemovepublic static final String CONSTRAINT
public void init(SecurityProvider securityProvider, ConfigurationParameters config)
AbstractAuthorizableActioninit in interface AuthorizableActioninit in class AbstractAuthorizableActionpublic void onCreate(@Nonnull User user, @Nullable String password, @Nonnull org.apache.jackrabbit.oak.api.Root root, @Nonnull org.apache.jackrabbit.oak.namepath.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(@Nonnull User user, @Nullable String newPassword, @Nonnull org.apache.jackrabbit.oak.api.Root root, @Nonnull org.apache.jackrabbit.oak.namepath.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 © 2012–2018 The Apache Software Foundation. All rights reserved.