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 class
PasswordRuleViolations.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 void
addViolation(String key)
Add a violation to the underlying list.void
addViolation(String key, String[] args)
Add a violation to the underlying list.List<String>
getLocalizedViolations()
Get the List of Violations as localized and post-processedString
s.List<PasswordRuleViolations.MessageReference>
getViolations()
boolean
hasViolations()
Simple test to see if there are any violations.void
reset()
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-processedString
s.- Returns:
- the List of
String
objects.
-
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()
-
-