public class UsernamePasswordMatch extends Object implements PasswordRestriction
PasswordRestriction to verify that the username and password and not equal.| Constructor and Description |
|---|
UsernamePasswordMatch(boolean must) |
| Modifier and Type | Method and Description |
|---|---|
String |
getRequirementMessage() |
void |
validate(String userName,
String password) |
public String getRequirementMessage()
getRequirementMessage in interface PasswordRestrictionpublic void validate(String userName, String password) throws PasswordValidationException
validate in interface PasswordRestrictionPasswordValidationExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.