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 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
Description copied from interface:Function
Applies this function to the input parametervalue
and returns the result.- Specified by:
apply
in interfaceFunction<JsonValue,
JsonValue, JsonCryptoException> - Parameters:
value
- The input parameter.- Returns:
- The result of applying this function to
value
. - Throws:
JsonCryptoException
-