|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectorg.jasypt.wicket.JasyptCrypt
public final class JasyptCrypt
Jasypt's implementation of ICrypt, based on the use of a
PBEByteEncryptor object for encryption and decryption operations.
This class is thread-safe.
| Constructor Summary | |
|---|---|
JasyptCrypt(PBEByteEncryptor encryptor)
Creates a new JasyptCrypt object, wrapping the passed encryptor. |
|
| Method Summary | |
|---|---|
String |
decryptUrlSafe(String text)
Decrypts a string using URL and filename safe Base64 decoding. |
String |
encryptUrlSafe(String plainText)
Encrypts a string using URL and filename safe Base64 encoding. |
void |
setKey(String key)
Important: Using jasypt, it makes no sense to change the encryption key once the encryptor has been initialized, and so this method is implemented to throw UnsupportedOperationException always. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JasyptCrypt(PBEByteEncryptor encryptor)
Creates a new JasyptCrypt object, wrapping the passed encryptor.
encryptor - the PBEByteEncryptor to be used internally.| Method Detail |
|---|
public String decryptUrlSafe(String text)
Decrypts a string using URL and filename safe Base64 decoding.
text - the text to be decrypted.
public String encryptUrlSafe(String plainText)
Encrypts a string using URL and filename safe Base64 encoding.
plainText - the text to be encrypted.
public void setKey(String key)
Important: Using jasypt, it makes no sense to change the encryption key once the encryptor has been initialized, and so this method is implemented to throw UnsupportedOperationException always.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||