Converter.IdentityConverter
Constructor and Description |
---|
JsonValueToJsonBytesConverter(com.fasterxml.jackson.databind.ObjectMapper mapper)
Constructs a new JsonValueToJsonBytesConverter instance.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.json.JsonValue |
convertBack(byte[] bytes)
Converts the object back to its original format.
|
byte[] |
convertFrom(org.forgerock.json.JsonValue jsonValue)
Converts the object from its original format.
|
@Inject public JsonValueToJsonBytesConverter(@Named(value="cts-json-object-mapper") com.fasterxml.jackson.databind.ObjectMapper mapper)
mapper
- A ObjectMapper
instance.public byte[] convertFrom(org.forgerock.json.JsonValue jsonValue)
Converter
convertFrom
in interface Converter<org.forgerock.json.JsonValue,byte[]>
jsonValue
- The object being converted.public org.forgerock.json.JsonValue convertBack(byte[] bytes)
Converter
convertBack
in interface Converter<org.forgerock.json.JsonValue,byte[]>
bytes
- The object being converted.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.