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(java.lang.String regex)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.String
getDescription()
PasswordPolicyDescriptor
getDescriptor()
protected abstract java.lang.String
getExceptionReason()
protected boolean
matches(java.lang.String password)
void
verify(java.lang.String password)
-
Methods inherited from class step.core.security.password.PasswordPolicy
getConfigurationKey
-
-
-
-
Method Detail
-
matches
protected boolean matches(java.lang.String password)
-
getDescriptor
public PasswordPolicyDescriptor getDescriptor()
- Specified by:
getDescriptor
in classPasswordPolicy
-
verify
public final void verify(java.lang.String password) throws PasswordPolicyViolation
- Specified by:
verify
in classPasswordPolicy
- Throws:
PasswordPolicyViolation
-
getExceptionReason
protected abstract java.lang.String getExceptionReason()
-
getDescription
protected abstract java.lang.String getDescription()
-
-