Record Class AdminDeviceService.PendingLogin

java.lang.Object
java.lang.Record
sk.iway.iwcm.users.devices.AdminDeviceService.PendingLogin
All Implemented Interfaces:
Serializable
Enclosing class:
AdminDeviceService

public static record AdminDeviceService.PendingLogin(Identity user, long deviceId, String tokenHash, String nonce, long expiresAt) extends Record implements Serializable
Holds the authenticated identity outside both login contexts until the email code succeeds.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    PendingLogin(Identity user, long deviceId, String tokenHash, String nonce, long expiresAt)
    Creates an instance of a PendingLogin record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the deviceId record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the expiresAt record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the nonce record component.
    Returns the value of the tokenHash record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the user record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PendingLogin

      public PendingLogin(Identity user, long deviceId, String tokenHash, String nonce, long expiresAt)
      Creates an instance of a PendingLogin record class.
      Parameters:
      user - the value for the user record component
      deviceId - the value for the deviceId record component
      tokenHash - the value for the tokenHash record component
      nonce - the value for the nonce record component
      expiresAt - the value for the expiresAt record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • user

      public Identity user()
      Returns the value of the user record component.
      Returns:
      the value of the user record component
    • deviceId

      public long deviceId()
      Returns the value of the deviceId record component.
      Returns:
      the value of the deviceId record component
    • tokenHash

      public String tokenHash()
      Returns the value of the tokenHash record component.
      Returns:
      the value of the tokenHash record component
    • nonce

      public String nonce()
      Returns the value of the nonce record component.
      Returns:
      the value of the nonce record component
    • expiresAt

      public long expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component