com.izforge.izpack.util
Class PasswordEqualityValidator
java.lang.Object
com.izforge.izpack.util.PasswordEqualityValidator
- All Implemented Interfaces:
- Validator
public class PasswordEqualityValidator
- extends java.lang.Object
- implements Validator
This class represents a simple validator for passwords to test equality. It is
based on the example implementation of a password validator that cooperates with the
password field in the UserInputPanel
. Additional validation may
be done by utilizing the params added to the password field.
- Author:
- Elmar Grom, Jeff Gordon
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PasswordEqualityValidator
public PasswordEqualityValidator()
validate
public boolean validate(ProcessingClient client)
- PasswordEqualityValidator
Validates the contend of multiple password fields. The test
- Specified by:
validate
in interface Validator
- Parameters:
client
- the client object using the services of this validator.
- Returns:
true
if the validation passes, otherwise false
.
getParams
private java.util.Map<java.lang.String,java.lang.String> getParams(ProcessingClient client)
fieldsMatch
private boolean fieldsMatch(ProcessingClient client)