Class EncryptUtils


  • public class EncryptUtils
    extends Object
    • Method Detail

      • encryptFields

        public static void encryptFields​(Object object)
      • decryptFields

        public static void decryptFields​(Object connectionDetails)
      • transformFields

        public static <E extends Exception> void transformFields​(Object object,
                                                                 EncryptUtils.Transformer<E> transformer)
                                                          throws E extends Exception
        Transforms the values of the fields of an object which are marked with the Encrypted annotation.
        Parameters:
        object - The object whose fields to transform.
        transformer - The transformer function.
        Throws:
        E extends Exception
      • setValue

        public static void setValue​(Object object,
                                    Field field,
                                    String value)