|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.mailbox.jpa.mail.model.openjpa.EncryptDecryptHelper
public class EncryptDecryptHelper
Helper class for encrypt and de-crypt data
| Constructor Summary | |
|---|---|
EncryptDecryptHelper()
|
|
| Method Summary | |
|---|---|
static byte[] |
getDecrypted(byte[] array)
Decrypt the given array and return the de-crypted one |
static byte[] |
getEncrypted(byte[] array)
Encrypt the given array and return the encrypted one |
static void |
init(String pass)
Set the password for encrypt / de-crypt. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EncryptDecryptHelper()
| Method Detail |
|---|
public static void init(String pass)
getDecrypted(byte[]) and getEncrypted(byte[]).
So to be safe its the best to call this in a constructor
pass - public static byte[] getEncrypted(byte[] array)
array -
public static byte[] getDecrypted(byte[] array)
array -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||