Package step.core.security.password
Class RegexPasswordPolicy
- java.lang.Object
-
- step.core.security.password.PasswordPolicy
-
- step.core.security.password.RegexPasswordPolicy
-
- Direct Known Subclasses:
MinimumLengthPolicy
,RequireLowerCasePolicy
,RequireNumericPolicy
,RequireSpecialCharacterPolicy
,RequireUpperCasePolicy
public abstract class RegexPasswordPolicy extends PasswordPolicy
-
-
Field Summary
-
Fields inherited from class step.core.security.password.PasswordPolicy
CONFIGURATION_PREFIX
-
-
Constructor Summary
Constructors Constructor Description RegexPasswordPolicy(String regex)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
getDescription()
PasswordPolicyDescriptor
getDescriptor()
protected abstract String
getExceptionReason()
protected boolean
matches(String password)
void
verify(String password)
-
Methods inherited from class step.core.security.password.PasswordPolicy
getConfigurationKey
-
-
-
-
Constructor Detail
-
RegexPasswordPolicy
public RegexPasswordPolicy(String regex)
-
-
Method Detail
-
matches
protected boolean matches(String password)
-
getDescriptor
public PasswordPolicyDescriptor getDescriptor()
- Specified by:
getDescriptor
in classPasswordPolicy
-
verify
public final void verify(String password) throws PasswordPolicyViolation
- Specified by:
verify
in classPasswordPolicy
- Throws:
PasswordPolicyViolation
-
getExceptionReason
protected abstract String getExceptionReason()
-
getDescription
protected abstract String getDescription()
-
-