public class PassthroughEncryptionModule extends Object implements EncryptionModule
Modifier and Type | Field and Description |
---|---|
protected org.springframework.core.env.Environment |
env |
Constructor and Description |
---|
PassthroughEncryptionModule() |
Modifier and Type | Method and Description |
---|---|
String |
decrypt(String cipherText)
Decrypt a encrypted string
|
String |
encrypt(String plainText)
Encrypt a text string
|
void |
init() |
Boolean |
matches(String raw,
String encrypted)
Check to see if a text string matches a generated encrypted token.
|
@PostConstruct public void init()
public String decrypt(String cipherText)
EncryptionModule
decrypt
in interface EncryptionModule
public String encrypt(String plainText)
EncryptionModule
encrypt
in interface EncryptionModule
public Boolean matches(String raw, String encrypted)
EncryptionModule
matches
in interface EncryptionModule
Copyright © 2022. All rights reserved.