|
Openfire 3.9.3 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.util.AesEncryptor
public class AesEncryptor
Utility class providing symmetric AES encryption/decryption. To strengthen
the encrypted result, use the setKey(byte[]) method to provide a custom
key prior to invoking the encrypt(java.lang.String) or decrypt(java.lang.String) methods.
| Constructor Summary | |
|---|---|
AesEncryptor()
Default constructor |
|
AesEncryptor(String key)
Custom key constructor |
|
| Method Summary | |
|---|---|
String |
decrypt(String value)
Decrypt an encrypted String. |
String |
encrypt(String value)
Encrypt a clear text String. |
void |
setKey(String key)
Set the encryption key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AesEncryptor()
public AesEncryptor(String key)
| Method Detail |
|---|
public String encrypt(String value)
Encryptor
encrypt in interface Encryptorvalue - The clear text attribute
public String decrypt(String value)
Encryptor
decrypt in interface Encryptorvalue - The encrypted attribute in Base64 encoding
public void setKey(String key)
Encryptor
setKey in interface Encryptorkey - The encryption key
|
Openfire 3.9.3 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||