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
ConstructorsConstructorDescriptionJsonDecryptFunction(JsonDecryptor decryptor) Constructs a function to apply a decryptor. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjecttraverseMap(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- ifdecryptorisnull.
-
-
Method Details
-
traverseMap
Description copied from class:JsonValueTraverseFunctionTransform a JsonValue Map into another object. Default implementation is to return a newLinkedHashMapfilled with the elements on which we applied the transformations.- Overrides:
traverseMapin classJsonValueTraverseFunction- Parameters:
value- the value to transform- Returns:
- the transformed value
-