Package org.forgerock.openam.tokens
Class JsonValueToJsonBytesConverter
- java.lang.Object
-
- org.forgerock.openam.tokens.JsonValueToJsonBytesConverter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.forgerock.openam.tokens.Converter
Converter.IdentityConverter
-
-
Constructor Summary
Constructors Constructor Description JsonValueToJsonBytesConverter(com.fasterxml.jackson.databind.ObjectMapper mapper)Constructs a new JsonValueToJsonBytesConverter instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.forgerock.json.JsonValueconvertBack(byte[] bytes)Converts the object back to its original format.byte[]convertFrom(org.forgerock.json.JsonValue jsonValue)Converts the object from its original format.
-
-
-
Method Detail
-
convertFrom
public byte[] convertFrom(org.forgerock.json.JsonValue jsonValue)
Description copied from interface:ConverterConverts the object from its original format.- Specified by:
convertFromin interfaceConverter<org.forgerock.json.JsonValue,byte[]>- Parameters:
jsonValue- The object being converted.- Returns:
- The converted object.
-
convertBack
public org.forgerock.json.JsonValue convertBack(byte[] bytes)
Description copied from interface:ConverterConverts the object back to its original format.- Specified by:
convertBackin interfaceConverter<org.forgerock.json.JsonValue,byte[]>- Parameters:
bytes- The object being converted.- Returns:
- The converted object.
-
-