Package org.pentaho.di.connections.utils
Class EncryptUtils
java.lang.Object
org.pentaho.di.connections.utils.EncryptUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceEncryptUtils.Transformer<E extends Exception>A transformer for encrypting and decrypting, which can throw a checked exception. -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddecryptFields(Object connectionDetails) static voidencryptFields(Object object) static Stringstatic voidstatic <E extends Exception>
voidtransformFields(Object object, EncryptUtils.Transformer<E> transformer) Transforms the values of the fields of an object which are marked with theEncryptedannotation.
-
Method Details
-
encryptFields
-
decryptFields
-
transformFields
public static <E extends Exception> void transformFields(Object object, EncryptUtils.Transformer<E> transformer) throws E Transforms the values of the fields of an object which are marked with theEncryptedannotation.- Parameters:
object- The object whose fields to transform.transformer- The transformer function.- Throws:
E extends Exception
-
setValue
-
getValue
-