Class PropertyValueEncryptionUtils


  • public final class PropertyValueEncryptionUtils
    extends Object

    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:

    my.value=ENC(!"DGAS24FaIO$)

    This class is meant for internal Jasypt use only.

    Since:
    1.4
    Author:
    Daniel Fernández
    • 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)