Class PasswordRuleViolations
- java.lang.Object
-
- org.apache.archiva.redback.policy.PasswordRuleViolations
-
public class PasswordRuleViolations extends Object
Password Rule Violations- Author:
- Joakim Erdfelt
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPasswordRuleViolations.MessageReference
-
Constructor Summary
Constructors Constructor Description PasswordRuleViolations()Construct a Password Rule Violations object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddViolation(String key)Add a violation to the underlying list.voidaddViolation(String key, String[] args)Add a violation to the underlying list.List<String>getLocalizedViolations()Get the List of Violations as localized and post-processedStrings.List<PasswordRuleViolations.MessageReference>getViolations()booleanhasViolations()Simple test to see if there are any violations.voidreset()Empty out the list of violations.
-
-
-
Constructor Detail
-
PasswordRuleViolations
public PasswordRuleViolations()
Construct a Password Rule Violations object.
-
-
Method Detail
-
reset
public void reset()
Empty out the list of violations.
-
addViolation
public void addViolation(String key)
Add a violation to the underlying list.- Parameters:
key- the bundle/localization key for the message.
-
addViolation
public void addViolation(String key, String[] args)
Add a violation to the underlying list.- Parameters:
key- the bundle/localization key for the message.args- the arguments for the message.
-
getLocalizedViolations
public List<String> getLocalizedViolations()
Get the List of Violations as localized and post-processedStrings.- Returns:
- the List of
Stringobjects.
-
hasViolations
public boolean hasViolations()
Simple test to see if there are any violations.- Returns:
- true if there are any violations.
-
getViolations
public List<PasswordRuleViolations.MessageReference> getViolations()
-
-