public class NoOpTextEncryptor extends Object implements TextEncryptor
TextEncryptor that does not actually encrypt or decrypt the text at all.
Useful for development environments, but should completely be disregarded in production environments. That's why
and warning is issued during post construct| Modifier and Type | Field and Description |
|---|---|
static String |
LOG_KEY_NOOP_USED |
| Constructor and Description |
|---|
NoOpTextEncryptor() |
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String encrypted)
Decrypts the specified encrypted text.
|
String |
encrypt(String clear)
Encrypts the specified clear text.
|
void |
init() |
public static final String LOG_KEY_NOOP_USED
@PostConstruct public void init()
public String encrypt(String clear) throws CryptoException
TextEncryptorencrypt in interface TextEncryptorclear - the clear text to encryptCryptoExceptionpublic String decrypt(String encrypted) throws CryptoException
TextEncryptordecrypt in interface TextEncryptorencrypted - the encrypted text to decryptCryptoExceptionCopyright © 2018 CrafterCMS. All rights reserved.