org.broadleafcommerce.common.encryption
Class PassthroughEncryptionModule

java.lang.Object
  extended by 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

Field Summary
protected  RuntimeEnvironmentKeyResolver keyResolver
           
protected static org.apache.log4j.Logger LOG
           
 
Constructor Summary
PassthroughEncryptionModule()
           
 
Method Summary
 String decrypt(String cipherText)
           
 String encrypt(String plainText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.log4j.Logger LOG

keyResolver

protected RuntimeEnvironmentKeyResolver keyResolver
Constructor Detail

PassthroughEncryptionModule

public PassthroughEncryptionModule()
Method Detail

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.