Package org.pentaho.di.connections.utils
Class EncryptUtils
java.lang.Object
org.pentaho.di.connections.utils.EncryptUtils
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
EncryptUtils.Transformer<E extends Exception>
A transformer for encrypting and decrypting, which can throw a checked exception. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
decryptFields
(Object connectionDetails) static void
encryptFields
(Object object) static String
static void
static <E extends Exception>
voidtransformFields
(Object object, EncryptUtils.Transformer<E> transformer) Transforms the values of the fields of an object which are marked with theEncrypted
annotation.
-
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 theEncrypted
annotation.- Parameters:
object
- The object whose fields to transform.transformer
- The transformer function.- Throws:
E extends Exception
-
setValue
-
getValue
-