|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.jasypt.wicket15.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(org.jasypt.encryption.pbe.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(org.jasypt.encryption.pbe.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.
decryptUrlSafe
in interface org.apache.wicket.util.crypt.ICrypt
text
- the text to be decrypted.
public String encryptUrlSafe(String plainText)
Encrypts a string using URL and filename safe Base64 encoding.
encryptUrlSafe
in interface org.apache.wicket.util.crypt.ICrypt
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.
setKey
in interface org.apache.wicket.util.crypt.ICrypt
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |