com.izforge.izpack.util
Class PasswordEncryptionValidator
java.lang.Object
com.izforge.izpack.util.PasswordEncryptionValidator
- All Implemented Interfaces:
- Validator
public class PasswordEncryptionValidator
- extends java.lang.Object
- implements Validator
- Author:
- Jeff Gordon
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
encryptCipher
private javax.crypto.Cipher encryptCipher
PasswordEncryptionValidator
public PasswordEncryptionValidator()
validate
public boolean validate(ProcessingClient client)
- Description copied from interface:
Validator
- Validates the contend of an input field.
- 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 getParams(ProcessingClient client)
initialize
private void initialize(java.lang.String key,
java.lang.String algorithm)
throws java.lang.Exception
- Throws:
java.lang.Exception
encryptString
public java.lang.String encryptString(java.lang.String string)
throws java.lang.Exception
- Throws:
java.lang.Exception