Package org.forgerock.json.crypto
Class JsonEncryptFunction
java.lang.Object
org.forgerock.json.crypto.JsonEncryptFunction
- All Implemented Interfaces:
Function<JsonValue,
JsonValue, JsonCryptoException>
public class JsonEncryptFunction
extends Object
implements Function<JsonValue,JsonValue,JsonCryptoException>
Create a new
JsonValue
by applying an encryptor.-
Constructor Summary
ConstructorsConstructorDescriptionJsonEncryptFunction
(JsonEncryptor encryptor) Constructs a function to apply an encryptor. -
Method Summary
-
Constructor Details
-
JsonEncryptFunction
Constructs a function to apply an encryptor.- Parameters:
encryptor
- the encryptor to apply to JSON values.- Throws:
NullPointerException
- ifencryptor
isnull
.
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<JsonValue,
JsonValue, JsonCryptoException> - Throws:
JsonCryptoException
-