com.ibm.dse.applsrv.aa
Class Scrambler

java.lang.Object
  |
  +--com.ibm.dse.applsrv.aa.Scrambler

public class Scrambler
extends java.lang.Object
implements EncryptionInterface

This class represents the default text scrambler.


Constructor Summary
Scrambler()
          Create a new instance of this text scrambler.
 
Method Summary
 java.lang.String decrypt(java.lang.String text, java.lang.String password)
          Return the text decrypted by the password.
 java.lang.String encrypt(java.lang.String text, java.lang.String password)
          Return a string representing the text encrypted by the password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scrambler

public Scrambler()
Create a new instance of this text scrambler.
Method Detail

decrypt

public java.lang.String decrypt(java.lang.String text,
                                java.lang.String password)
Return the text decrypted by the password.
Specified by:
decrypt in interface EncryptionInterface
Parameters:
text - String - the encrypted string.
password - String - the password.
Returns:
String - the decrypted string.

encrypt

public java.lang.String encrypt(java.lang.String text,
                                java.lang.String password)
Return a string representing the text encrypted by the password.
Specified by:
encrypt in interface EncryptionInterface
Parameters:
text - String - the string to encrypted.
password - String - the password.
Returns:
String - the scrambled string.