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 UserConfiguration
config
protected boolean
enabled
-
Constructor Summary
Constructors Constructor Description AbstractPasswordRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
Tests if rule is enabled (or not)boolean
requiresSecurityPolicy()
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:PasswordRule
Tests if rule is enabled (or not)- Specified by:
isEnabled
in interfacePasswordRule
-
requiresSecurityPolicy
public boolean requiresSecurityPolicy()
true if the security policy is required for the rule to execute- Specified by:
requiresSecurityPolicy
in interfacePasswordRule
- Returns:
- boolean
-
-