Class AbstractPasswordRule
- java.lang.Object
-
- org.apache.archiva.redback.policy.rules.AbstractPasswordRule
-
- All Implemented Interfaces:
PasswordRule
- Direct Known Subclasses:
AlphaNumericPasswordRule,AlphaPasswordRule,CharacterLengthPasswordRule,MustHavePasswordRule,NumericalPasswordRule,ReusePasswordRule,WhitespacePasswordRule
public abstract class AbstractPasswordRule extends Object implements PasswordRule
AbstractPasswordRule- Author:
- Joakim Erdfelt
-
-
Field Summary
Fields Modifier and Type Field Description protected UserConfigurationconfigprotected booleanenabled
-
Constructor Summary
Constructors Constructor Description AbstractPasswordRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEnabled()Tests if rule is enabled (or not)booleanrequiresSecurityPolicy()true if the security policy is required for the rule to execute-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.archiva.redback.policy.PasswordRule
initialize, setUserSecurityPolicy, testPassword
-
-
-
-
Field Detail
-
enabled
protected boolean enabled
-
config
@Inject @Named("userConfiguration#default") protected UserConfiguration config
-
-
Constructor Detail
-
AbstractPasswordRule
public AbstractPasswordRule()
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Description copied from interface:PasswordRuleTests if rule is enabled (or not)- Specified by:
isEnabledin interfacePasswordRule
-
requiresSecurityPolicy
public boolean requiresSecurityPolicy()
true if the security policy is required for the rule to execute- Specified by:
requiresSecurityPolicyin interfacePasswordRule- Returns:
- boolean
-
-