Class PropertyValueEncryptionUtils
java.lang.Object
org.jasypt.properties.PropertyValueEncryptionUtils
Utility class to encrypt/decrypt values in properties files which could be encrypted.
A value is considered "encrypted" when it appears surrounded by ENC(...), like:
This class is meant for internal Jasypt use only.
- Since:
- 1.4
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringdecrypt(String encodedValue, StringEncryptor encryptor) static Stringdecrypt(String encodedValue, TextEncryptor encryptor) static Stringencrypt(String decodedValue, StringEncryptor encryptor) static Stringencrypt(String decodedValue, TextEncryptor encryptor) private static StringgetInnerEncryptedValue(String value) static booleanisEncryptedValue(String value)
-
Field Details
-
ENCRYPTED_VALUE_PREFIX
- See Also:
-
ENCRYPTED_VALUE_SUFFIX
- See Also:
-
-
Constructor Details
-
PropertyValueEncryptionUtils
private PropertyValueEncryptionUtils()
-
-
Method Details
-
isEncryptedValue
-
getInnerEncryptedValue
-
decrypt
-
decrypt
-
encrypt
-
encrypt
-