org.broadleafcommerce.common.encryption
Class PassthroughEncryptionModule
java.lang.Object
org.broadleafcommerce.common.encryption.PassthroughEncryptionModule
- All Implemented Interfaces:
- EncryptionModule
public class PassthroughEncryptionModule
- extends Object
- implements EncryptionModule
The default encryption module simply passes through the decrypt and encrypt text.
A real implementation should adhere to PCI compliance, which requires robust key
management, including regular key rotation. An excellent solution would be a module
for interacting with the StrongKey solution. Refer to this discussion:
http://www.strongauth.com/forum/index.php?topic=44.0
- Author:
- jfischer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.log4j.Logger LOG
keyResolver
protected RuntimeEnvironmentKeyResolver keyResolver
PassthroughEncryptionModule
public PassthroughEncryptionModule()
decrypt
public String decrypt(String cipherText)
- Specified by:
decrypt in interface EncryptionModule
encrypt
public String encrypt(String plainText)
- Specified by:
encrypt in interface EncryptionModule
Copyright © 2013. All Rights Reserved.