Class JsonDeviceSerialisation
- java.lang.Object
-
- org.forgerock.openam.core.rest.devices.JsonDeviceSerialisation
-
- All Implemented Interfaces:
DeviceSerialisation
public final class JsonDeviceSerialisation extends Object implements DeviceSerialisation
Stores devices as the JSON string serialisation of the device profile.
-
-
Constructor Summary
Constructors Constructor Description JsonDeviceSerialisation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdeviceProfileToString(org.forgerock.json.JsonValue deviceProfile)Converts a JSON device profile to a string.org.forgerock.json.JsonValuestringToDeviceProfile(String value)Converts a serialised string back into a JSON device profile.
-
-
-
Method Detail
-
deviceProfileToString
public String deviceProfileToString(org.forgerock.json.JsonValue deviceProfile)
Description copied from interface:DeviceSerialisationConverts a JSON device profile to a string.- Specified by:
deviceProfileToStringin interfaceDeviceSerialisation- Parameters:
deviceProfile- the device profile to convert to a string.- Returns:
- the serialised device profile.
-
stringToDeviceProfile
public org.forgerock.json.JsonValue stringToDeviceProfile(String value)
Description copied from interface:DeviceSerialisationConverts a serialised string back into a JSON device profile.- Specified by:
stringToDeviceProfilein interfaceDeviceSerialisation- Parameters:
value- the value to parse back into a JSON device profile.- Returns:
- the JSON device profile.
-
-