Class DeviceSettings
- java.lang.Object
-
- org.forgerock.openam.core.rest.devices.DeviceSettings
-
- Direct Known Subclasses:
OathDeviceSettings,PushDeviceSettings
public abstract class DeviceSettings extends Object
Abstract concept of DeviceSettings, used to ensure that any device(s) stored have a unique identifier so that they can be individually referenced. Despite this, most interactions will be with the entire field rather than specific instances of devices as multiple individual devices per user per realm is currently not directly supported.
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]recoveryCodesprotected Stringuuid
-
Constructor Summary
Constructors Constructor Description DeviceSettings()Configures the internal UUID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getRecoveryCodes()Get the array of recovery codes which are usable for this device.StringgetUUID()Gets the UUID from this device which is used as reference and set on creation.voidsetRecoveryCodes(String[] recoveryCodes)Sets the remaining recovery codes for this device.voidsetUUID(String uuid)Sets the UUID for this device.
-
-
-
Method Detail
-
setUUID
public void setUUID(String uuid)
Sets the UUID for this device.- Parameters:
uuid- The UUID.
-
getUUID
public String getUUID()
Gets the UUID from this device which is used as reference and set on creation.- Returns:
- UUID the UUID.
-
setRecoveryCodes
public void setRecoveryCodes(String[] recoveryCodes)
Sets the remaining recovery codes for this device.- Parameters:
recoveryCodes- the remaining recovery codes for this device. Can not be null.
-
getRecoveryCodes
public String[] getRecoveryCodes()
Get the array of recovery codes which are usable for this device.- Returns:
- an array of the remaining recovery codes for this device.
-
-