Class EncryptedJwtDeviceSerialisation
- java.lang.Object
-
- org.forgerock.openam.core.rest.devices.EncryptedJwtDeviceSerialisation
-
- All Implemented Interfaces:
DeviceSerialisation
public final class EncryptedJwtDeviceSerialisation extends Object implements DeviceSerialisation
Stores device profiles as an encrypted JWT for security.
-
-
Constructor Summary
Constructors Constructor Description EncryptedJwtDeviceSerialisation(org.forgerock.json.jose.jwe.EncryptionMethod encryptionMethod, org.forgerock.json.jose.jwe.JweAlgorithm jweAlgorithm, KeyPair encryptionKeyPair)
-
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.
-
-
-
Constructor Detail
-
EncryptedJwtDeviceSerialisation
public EncryptedJwtDeviceSerialisation(org.forgerock.json.jose.jwe.EncryptionMethod encryptionMethod, org.forgerock.json.jose.jwe.JweAlgorithm jweAlgorithm, KeyPair encryptionKeyPair)
-
-
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.
-
-