Package org.apache.wiki.auth
Class PasswordComplexityVerifier
java.lang.Object
org.apache.wiki.auth.PasswordComplexityVerifier
a simple password complexity checker
- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvalidates a password, returns a list of size 0 is all the checks pass.list of size > 0 = password is invalid with each item in the list containing the rule that failed.suitable to direct display to the user.
-
Method Details
-
validate
public static List<String> validate(String pwd, String previousPwd, org.apache.wiki.api.core.Context context) validates a password, returns a list of size 0 is all the checks pass.list of size > 0 = password is invalid with each item in the list containing the rule that failed.suitable to direct display to the user. i.e. the password was too short, or has too many repeating characters, etc.- Parameters:
pwd-context-- Returns:
- see above
-