Class PassthroughEncryptionModule
java.lang.Object
org.broadleafcommerce.common.encryption.PassthroughEncryptionModule
- All Implemented Interfaces:
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
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
env
@Autowired protected org.springframework.core.env.Environment env
-
-
Constructor Details
-
PassthroughEncryptionModule
public PassthroughEncryptionModule()
-
-
Method Details
-
init
@PostConstruct public void init() -
decrypt
Description copied from interface:EncryptionModule
Decrypt a encrypted string- Specified by:
decrypt
in interfaceEncryptionModule
- Returns:
-
encrypt
Description copied from interface:EncryptionModule
Encrypt a text string- Specified by:
encrypt
in interfaceEncryptionModule
- Returns:
-
matches
Description copied from interface:EncryptionModule
Check to see if a text string matches a generated encrypted token. This is useful for encoders that always generate a unique hash.- Specified by:
matches
in interfaceEncryptionModule
- Returns:
-