Class NoOpTextEncryptor
java.lang.Object
org.craftercms.commons.crypto.impl.NoOpTextEncryptor
- All Implemented Interfaces:
TextEncryptor
,org.springframework.beans.factory.InitializingBean
public class NoOpTextEncryptor
extends Object
implements TextEncryptor, org.springframework.beans.factory.InitializingBean
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- Author:
- avasquez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOG_KEY_NOOP_USED
- See Also:
-
-
Constructor Details
-
NoOpTextEncryptor
public NoOpTextEncryptor()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
encrypt
Description copied from interface:TextEncryptor
Encrypts the specified clear text.- Specified by:
encrypt
in interfaceTextEncryptor
- Parameters:
clear
- the clear text to encrypt- Returns:
- the encrypted text
- Throws:
CryptoException
-
decrypt
Description copied from interface:TextEncryptor
Decrypts the specified encrypted text.- Specified by:
decrypt
in interfaceTextEncryptor
- Parameters:
encrypted
- the encrypted text to decrypt- Returns:
- the clear text
- Throws:
CryptoException
-