com.izforge.izpack.util
Class PasswordEncryptionValidator

java.lang.Object
  extended by com.izforge.izpack.util.PasswordEncryptionValidator
All Implemented Interfaces:
Validator

public class PasswordEncryptionValidator
extends java.lang.Object
implements Validator

Author:
Jeff Gordon

Field Summary
private  javax.crypto.Cipher encryptCipher
           
 
Constructor Summary
PasswordEncryptionValidator()
           
 
Method Summary
 java.lang.String encryptString(java.lang.String string)
           
private  java.util.Map getParams(ProcessingClient client)
           
private  void initialize(java.lang.String key, java.lang.String algorithm)
           
 boolean validate(ProcessingClient client)
          Validates the contend of an input field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

encryptCipher

private javax.crypto.Cipher encryptCipher
Constructor Detail

PasswordEncryptionValidator

public PasswordEncryptionValidator()
Method Detail

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