public class CryptoUtil extends Object
Constructor and Description |
---|
CryptoUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
checkEncrypted(Collection<? extends ItemDelta> modifications) |
static <T extends ObjectType> |
checkEncrypted(ObjectDelta<T> delta) |
static <T extends ObjectType> |
checkEncrypted(PrismObject<T> object) |
static <T extends ObjectType> |
computeReencryptModifications(Protector protector,
PrismObject<T> object) |
static <T extends ObjectType> |
containsCleartext(PrismObject<T> object) |
static <T extends ObjectType> |
containsHashedData(PrismObject<T> object) |
static <T extends ObjectType> |
encryptValues(Protector protector,
ObjectDelta<T> delta)
Encrypts all encryptable values in delta.
|
static <T extends ObjectType> |
encryptValues(Protector protector,
PrismObject<T> object)
Encrypts all encryptable values in the object.
|
static <T extends ObjectType> |
getEncryptionKeyNames(PrismObject<T> object) |
static <T extends ObjectType> |
reencryptValues(Protector protector,
PrismObject<T> object)
Re-encrypts all encryptable values in the object.
|
static void |
securitySelfTest(OperationResult parentTestResult) |
public static <T extends ObjectType> void encryptValues(Protector protector, PrismObject<T> object) throws EncryptionException
EncryptionException
public static <T extends ObjectType> void encryptValues(Protector protector, ObjectDelta<T> delta) throws EncryptionException
EncryptionException
public static <T extends ObjectType> void checkEncrypted(PrismObject<T> object)
public static <T extends ObjectType> void checkEncrypted(ObjectDelta<T> delta)
public static void checkEncrypted(Collection<? extends ItemDelta> modifications)
public static void securitySelfTest(OperationResult parentTestResult)
public static <T extends ObjectType> Collection<? extends ItemDelta<?,?>> computeReencryptModifications(Protector protector, PrismObject<T> object) throws EncryptionException
EncryptionException
public static <T extends ObjectType> int reencryptValues(Protector protector, PrismObject<T> object) throws EncryptionException
EncryptionException
@NotNull public static <T extends ObjectType> Collection<String> getEncryptionKeyNames(PrismObject<T> object)
public static <T extends ObjectType> boolean containsCleartext(PrismObject<T> object)
public static <T extends ObjectType> boolean containsHashedData(PrismObject<T> object)
Copyright © 2020 Evolveum. All rights reserved.