Class 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 Detail

      • recoveryCodes

        protected String[] recoveryCodes
    • Constructor Detail

      • DeviceSettings

        public DeviceSettings()
        Configures the internal UUID.
    • 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.