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 interfaceEncryptUtils.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 voiddecryptFields(Object connectionDetails)static voidencryptFields(Object object)static StringgetValue(Object object, Field field)static voidsetValue(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 theEncryptedannotation.
-
-
-
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 theEncryptedannotation.- Parameters:
object- The object whose fields to transform.transformer- The transformer function.- Throws:
E extends Exception
-
-