JasyptCrypt
instead.public final class JasyptCrypt extends Object implements org.apache.wicket.util.crypt.ICrypt
Jasypt's implementation of ICrypt, based on the use of a
PBEByteEncryptor object for encryption and decryption operations.
This class is thread-safe.
| Constructor and Description |
|---|
JasyptCrypt(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)
Deprecated.
Creates a new JasyptCrypt object, wrapping the passed
encryptor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
decryptUrlSafe(String text)
Deprecated.
Decrypts a string using URL and filename safe Base64 decoding.
|
String |
encryptUrlSafe(String plainText)
Deprecated.
Encrypts a string using URL and filename safe Base64 encoding.
|
void |
setKey(String key)
Deprecated.
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.
|
public JasyptCrypt(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)
Creates a new JasyptCrypt object, wrapping the passed encryptor.
encryptor - the PBEByteEncryptor to be used internally.public String decryptUrlSafe(String text)
Decrypts a string using URL and filename safe Base64 decoding.
decryptUrlSafe in interface org.apache.wicket.util.crypt.ICrypttext - 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.ICryptplainText - 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.ICryptCopyright © 2019 The JASYPT team. All rights reserved.