Class CryptoUtil
- java.lang.Object
-
- com.evolveum.midpoint.common.crypto.CryptoUtil
-
public class CryptoUtil extends Object
- Author:
- semancik
-
-
Constructor Summary
Constructors Constructor Description CryptoUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends ObjectType>
voidcheckEncrypted(ObjectDelta<T> delta)
static <T extends ObjectType>
voidcheckEncrypted(PrismObject<T> object)
static void
checkEncrypted(Collection<? extends ItemDelta> modifications)
static <T extends ObjectType>
Collection<? extends ItemDelta<?,?>>computeReencryptModifications(Protector protector, PrismObject<T> object)
static <T extends ObjectType>
booleancontainsCleartext(PrismObject<T> object)
static <T extends ObjectType>
booleancontainsHashedData(PrismObject<T> object)
static <T extends ObjectType>
voidencryptValues(Protector protector, ObjectDelta<T> delta)
Encrypts all encryptable values in delta.static <T extends ObjectType>
voidencryptValues(Protector protector, PrismObject<T> object)
Encrypts all encryptable values in the object.static <T extends ObjectType>
Collection<String>getEncryptionKeyNames(PrismObject<T> object)
static <T extends ObjectType>
intreencryptValues(Protector protector, PrismObject<T> object)
Re-encrypts all encryptable values in the object.static void
securitySelfTest(OperationResult parentTestResult)
-
-
-
Method Detail
-
encryptValues
public static <T extends ObjectType> void encryptValues(Protector protector, PrismObject<T> object) throws EncryptionException
Encrypts all encryptable values in the object.- Throws:
EncryptionException
-
encryptValues
public static <T extends ObjectType> void encryptValues(Protector protector, ObjectDelta<T> delta) throws EncryptionException
Encrypts all encryptable values in delta.- Throws:
EncryptionException
-
checkEncrypted
public static <T extends ObjectType> void checkEncrypted(PrismObject<T> object)
-
checkEncrypted
public static <T extends ObjectType> void checkEncrypted(ObjectDelta<T> delta)
-
checkEncrypted
public static void checkEncrypted(Collection<? extends ItemDelta> modifications)
-
securitySelfTest
public static void securitySelfTest(OperationResult parentTestResult)
-
computeReencryptModifications
public static <T extends ObjectType> Collection<? extends ItemDelta<?,?>> computeReencryptModifications(Protector protector, PrismObject<T> object) throws EncryptionException
- Throws:
EncryptionException
-
reencryptValues
public static <T extends ObjectType> int reencryptValues(Protector protector, PrismObject<T> object) throws EncryptionException
Re-encrypts all encryptable values in the object.- Throws:
EncryptionException
-
getEncryptionKeyNames
@NotNull public static <T extends ObjectType> Collection<String> getEncryptionKeyNames(PrismObject<T> object)
-
containsCleartext
public static <T extends ObjectType> boolean containsCleartext(PrismObject<T> object)
-
containsHashedData
public static <T extends ObjectType> boolean containsHashedData(PrismObject<T> object)
-
-