public class JasyptPBEStringEncryptionServiceImpl extends Object implements IStringEncryptionService
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
JasyptPBEStringEncryptionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
String |
decrypt(String cryptotext)
Decrypt a string
|
String |
encrypt(String plaintext)
Encrypt a string
|
void |
setStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)
Set the PBEStringEncryptor to be used
|
boolean |
usingDefaultEncryptionKey()
Returns true if the encryptor is configured to use the default encryption key.
|
public JasyptPBEStringEncryptionServiceImpl()
public void setStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)
encryptor - public String encrypt(String plaintext)
encrypt in interface IStringEncryptionServicepublic String decrypt(String cryptotext)
decrypt in interface IStringEncryptionService@PostConstruct public void afterPropertiesSet() throws Exception
Exceptionpublic boolean usingDefaultEncryptionKey()
usingDefaultEncryptionKey in interface IStringEncryptionServiceCopyright © 2015 Jasig. All Rights Reserved.