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- ifencryptorisnull.
-
-
Method Details
-
apply
Description copied from interface:FunctionApplies this function to the input parametervalueand returns the result.- Specified by:
applyin interfaceFunction<JsonValue,JsonValue, JsonCryptoException> - Parameters:
value- The input parameter.- Returns:
- The result of applying this function to
value. - Throws:
JsonCryptoException
-