com.izforge.izpack.sample
Class PWDEncryptor

java.lang.Object
  extended bycom.izforge.izpack.sample.PWDEncryptor
All Implemented Interfaces:
Processor

public class PWDEncryptor
extends java.lang.Object
implements Processor

This class provides a demonstration for using an encryption service in connection with a password field, as used in a UserInputPanel.

Version:
0.0.1 / 02/19/03
Author:
Elmar Grom

Constructor Summary
PWDEncryptor()
           
 
Method Summary
 java.lang.String process(ProcessingClient client)
          Encrypts the a password and returns the encrypted result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PWDEncryptor

public PWDEncryptor()
Method Detail

process

public java.lang.String process(ProcessingClient client)
Encrypts the a password and returns the encrypted result.
Note: this is not a real encryption algorithm. The code only demonstrates the use of this interface in a real installation environment. For a real application a proper encryption mechanism must be used. Though Java 1.4.X provides such algorithms, you need to consider that not all potential target environments have this version installed. It seems best to include the necessary encryption library with the installer.

Specified by:
process in interface Processor
Parameters:
client - the client object using the services of this encryptor.
Returns:
the encryption result.