public class LengthRestriction extends Object implements PasswordRestriction
PasswordRestriction to check the length of the password.| Constructor and Description |
|---|
LengthRestriction(int desiredLength,
boolean must) |
public LengthRestriction(int desiredLength,
boolean must)
desiredLength - public String getRequirementMessage()
getRequirementMessage in interface PasswordRestrictionpublic void validate(String userName, String password) throws PasswordValidationException
validate in interface PasswordRestrictionPasswordValidationExceptionCopyright © 2015 JBoss by Red Hat. All rights reserved.