Class LengthRestriction
- java.lang.Object
-
- org.jboss.as.domain.management.security.password.LengthRestriction
-
- All Implemented Interfaces:
PasswordRestriction
public class LengthRestriction extends Object implements PasswordRestriction
APasswordRestrictionto check the length of the password.- Author:
- baranowb, Darran Lofthouse
-
-
Constructor Summary
Constructors Constructor Description LengthRestriction(int desiredLength, boolean must)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRequirementMessage()voidvalidate(String userName, String password)
-
-
-
Method Detail
-
getRequirementMessage
public String getRequirementMessage()
- Specified by:
getRequirementMessagein interfacePasswordRestriction
-
validate
public void validate(String userName, String password) throws PasswordValidationException
- Specified by:
validatein interfacePasswordRestriction- Throws:
PasswordValidationException
-
-