| java.lang.Object com.izforge.izpack.util.PasswordKeystoreValidator
PasswordKeystoreValidator | public class PasswordKeystoreValidator implements Validator(Code) | | This class based on a simple validator for passwords to demonstrate
the 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 author: Jeff Gordon |
validate | public boolean validate(ProcessingClient client)(Code) | | PasswordKeystoreValidator
Validates the ability to open a keystore based on the password and
parameters provided. Must specify parameter 'keystoreFile', and optionally
'keystoreType' (defaults to JKS), 'keystoreAlias' (to check for existence of a key),
and 'aliasPassword' (for trying to retrieve the key).
An additional parameter 'skipValidation' can be set to 'true' in a checkbox and
allow the validator framework to run, but not actually do the validation.
Optionally checking the key password of multiple keys within a keystore
requires the keystore password (if different from the key password) be set
in the keystorePassword parameter.
Parameters: client - the client object using the services of this validator. true if the validation passes, otherwise false . |
|
|