Interface DeviceSerialisation
-
- All Known Implementing Classes:
EncryptedJwtDeviceSerialisation,JsonDeviceSerialisation
public interface DeviceSerialisationProvides serialisation of devices between JsonValue and String representations.
-
-
Method Summary
All Methods Instance Methods Abstract 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
String deviceProfileToString(org.forgerock.json.JsonValue deviceProfile)
Converts a JSON device profile to a string.- Parameters:
deviceProfile- the device profile to convert to a string.- Returns:
- the serialised device profile.
-
stringToDeviceProfile
org.forgerock.json.JsonValue stringToDeviceProfile(String value)
Converts a serialised string back into a JSON device profile.- Parameters:
value- the value to parse back into a JSON device profile.- Returns:
- the JSON device profile.
- Throws:
IllegalArgumentException- if the value cannot be parsed as a string.org.forgerock.json.JsonException- if the value cannot be parsed as Json.
-
-