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 constructModifier and Type | Field and Description |
---|---|
static String |
LOG_KEY_NOOP_USED |
Constructor and Description |
---|
NoOpTextEncryptor() |
public static final String LOG_KEY_NOOP_USED
@PostConstruct public void init()
public String encrypt(String clear) throws CryptoException
TextEncryptor
encrypt
in interface TextEncryptor
clear
- the clear text to encryptCryptoException
public String decrypt(String encrypted) throws CryptoException
TextEncryptor
decrypt
in interface TextEncryptor
encrypted
- the encrypted text to decryptCryptoException
Copyright © 2015 CrafterCMS. All Rights Reserved.