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 PasswordRestriction
public void validate(String userName, String password) throws PasswordValidationException
validate
in interface PasswordRestriction
PasswordValidationException
Copyright © 2023 JBoss by Red Hat. All rights reserved.