Package org.pentaho.di.connections.utils
Class EncryptUtils
- java.lang.Object
-
- org.pentaho.di.connections.utils.EncryptUtils
-
public class EncryptUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
EncryptUtils.Transformer<E extends Exception>
A transformer for encrypting and decrypting, which can throw a checked exception.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
decryptFields(Object connectionDetails)
static void
encryptFields(Object object)
static String
getValue(Object object, Field field)
static void
setValue(Object object, Field field, String value)
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 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 theEncrypted
annotation.- Parameters:
object
- The object whose fields to transform.transformer
- The transformer function.- Throws:
E extends Exception
-
-