public class ValueRestriction extends Object implements PasswordRestriction
PasswordValidation
to verify that a password is not in a list of banned passwords.Constructor and Description |
---|
ValueRestriction(String[] forbiddenValues,
boolean must) |
public ValueRestriction(String[] forbiddenValues, boolean must)
public String getRequirementMessage()
getRequirementMessage
in interface PasswordRestriction
public void validate(String userName, String password) throws PasswordValidationException
validate
in interface PasswordRestriction
PasswordValidationException
Copyright © 2014 JBoss by Red Hat. All rights reserved.