Interface DeviceSerialisation

    • 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.