Package org.forgerock.json.crypto
Class JsonDecryptFunction
java.lang.Object
org.forgerock.json.JsonValueTraverseFunction
org.forgerock.json.crypto.JsonDecryptFunction
- All Implemented Interfaces:
Function<JsonValue,
JsonValue, JsonValueException>
Create a new
JsonValue
by applying a decryptor.-
Constructor Summary
ConstructorDescriptionJsonDecryptFunction
(JsonDecryptor decryptor) Constructs a function to apply a decryptor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
traverseMap
(JsonValue value) Transform a JsonValue Map into another object.Methods inherited from class org.forgerock.json.JsonValueTraverseFunction
apply, traverseList
-
Constructor Details
-
JsonDecryptFunction
Constructs a function to apply a decryptor.- Parameters:
decryptor
- the decryptor to apply to JSON values.- Throws:
NullPointerException
- ifdecryptor
isnull
.
-
-
Method Details
-
traverseMap
Description copied from class:JsonValueTraverseFunction
Transform a JsonValue Map into another object. Default implementation is to return a newLinkedHashMap
filled with the elements on which we applied the transformations.- Overrides:
traverseMap
in classJsonValueTraverseFunction
- Parameters:
value
- the value to transform- Returns:
- the transformed value
-