Package org.jasypt.properties
Class PropertyValueEncryptionUtils
- Object
-
- org.jasypt.properties.PropertyValueEncryptionUtils
-
public final class PropertyValueEncryptionUtils extends ObjectUtility class to encrypt/decrypt values in properties files which could be encrypted.
A value is considered "encrypted" when it appears surrounded by ENC(...), like:
my.value=ENC(!"DGAS24FaIO$) This class is meant for internal Jasypt use only.
- Since:
- 1.4
- Author:
- Daniel Fernández
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringdecrypt(String encodedValue, StringEncryptor encryptor)static Stringdecrypt(String encodedValue, TextEncryptor encryptor)static Stringencrypt(String decodedValue, StringEncryptor encryptor)static Stringencrypt(String decodedValue, TextEncryptor encryptor)static booleanisEncryptedValue(String value)
-
-
-
Method Detail
-
isEncryptedValue
public static boolean isEncryptedValue(String value)
-
decrypt
public static String decrypt(String encodedValue, StringEncryptor encryptor)
-
decrypt
public static String decrypt(String encodedValue, TextEncryptor encryptor)
-
encrypt
public static String encrypt(String decodedValue, StringEncryptor encryptor)
-
encrypt
public static String encrypt(String decodedValue, TextEncryptor encryptor)
-
-