Class UsernamePasswordMatch
- java.lang.Object
-
- org.jboss.as.domain.management.security.password.UsernamePasswordMatch
-
- All Implemented Interfaces:
PasswordRestriction
public class UsernamePasswordMatch extends Object implements PasswordRestriction
APasswordRestrictionto verify that the username and password and not equal.- Author:
- Darran Lofthouse
-
-
Constructor Summary
Constructors Constructor Description UsernamePasswordMatch(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
-
-