Class MultifactorAuthenticationRegisteredDevice

java.lang.Object
org.apereo.cas.authentication.device.MultifactorAuthenticationRegisteredDevice
All Implemented Interfaces:
Serializable

public class MultifactorAuthenticationRegisteredDevice extends Object implements Serializable
Since:
6.6.0
See Also:
  • Constructor Details

    • MultifactorAuthenticationRegisteredDevice

      public MultifactorAuthenticationRegisteredDevice()
    • MultifactorAuthenticationRegisteredDevice

      public MultifactorAuthenticationRegisteredDevice(String name, String type, String id, String number, String model, String lastUsedDateTime, String expirationDateTime, String payload, String source, Map<String,Object> details)
      Creates a new MultifactorAuthenticationRegisteredDevice instance.
      Parameters:
      name - The device name as chosen/managed by the mfa provider.
      type - Phone, tablet, etc.
      id - Unique identifier for the device registration entry.
      number - Phone number assigned to the device, if any.
      model - Platform type and details. (Android, iOS, Samsung, LG, etc)
      lastUsedDateTime -
      expirationDateTime -
      payload - The actual device record produced by the provider typically captured here as JSON.
      source -
      details -
  • Method Details

    • builder

    • getName

      public String getName()
      The device name as chosen/managed by the mfa provider.
    • getType

      public String getType()
      Phone, tablet, etc.
    • getId

      public String getId()
      Unique identifier for the device registration entry.
    • getNumber

      public String getNumber()
      Phone number assigned to the device, if any.
    • getModel

      public String getModel()
      Platform type and details. (Android, iOS, Samsung, LG, etc)
    • getLastUsedDateTime

      public String getLastUsedDateTime()
    • getExpirationDateTime

      public String getExpirationDateTime()
    • getPayload

      public String getPayload()
      The actual device record produced by the provider typically captured here as JSON.
    • getSource

      public String getSource()
    • getDetails

      public Map<String,Object> getDetails()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • setDetails

      public void setDetails(Map<String,Object> details)
    • withName

      The device name as chosen/managed by the mfa provider.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withType

      Phone, tablet, etc.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withId

      Unique identifier for the device registration entry.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withNumber

      Phone number assigned to the device, if any.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withModel

      Platform type and details. (Android, iOS, Samsung, LG, etc)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withLastUsedDateTime

      public MultifactorAuthenticationRegisteredDevice withLastUsedDateTime(String lastUsedDateTime)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withExpirationDateTime

      public MultifactorAuthenticationRegisteredDevice withExpirationDateTime(String expirationDateTime)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPayload

      public MultifactorAuthenticationRegisteredDevice withPayload(String payload)
      The actual device record produced by the provider typically captured here as JSON.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSource

      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDetails

      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).