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