Record Class FailedSignInStore.Attempt

java.lang.Object
java.lang.Record
com.iizix.server.user.FailedSignInStore.Attempt
Record Components:
id - The row identifier, zero to have one made at the write.
uid - The user.
time - When, in epoch milliseconds (UTC).
step - The step that failed.
afterPassword - true when the password was right and a later step failed.
urgent - true when the attempt is mailed every time (past the password, or a sensitive account).
appID - The application, null for none.
deviceName - What the client said it was, null for none.
address - The client address as text, null for none.
place - The place of the address, null for none.
mailKind - What became of the mail: NULL while due, else one of the MAIL_ constants.
mailedAt - When mailed, null for not (yet).
serverID - The server that wrote it, null when unknown.
Enclosing class:
FailedSignInStore

public static record FailedSignInStore.Attempt(long id, long uid, long time, FailedSignInStep step, boolean afterPassword, boolean urgent, String appID, String deviceName, String address, String place, String mailKind, Long mailedAt, String serverID) extends Record
One attempt, as written and as read.
Author:
Christopher Mindus
  • Constructor Details

    • Attempt

      public Attempt(long id, long uid, long time, FailedSignInStep step, boolean afterPassword, boolean urgent, String appID, String deviceName, String address, String place, String mailKind, Long mailedAt, String serverID)
      Creates an instance of a Attempt record class.
      Parameters:
      id - the value for the id record component
      uid - the value for the uid record component
      time - the value for the time record component
      step - the value for the step record component
      afterPassword - the value for the afterPassword record component
      urgent - the value for the urgent record component
      appID - the value for the appID record component
      deviceName - the value for the deviceName record component
      address - the value for the address record component
      place - the value for the place record component
      mailKind - the value for the mailKind record component
      mailedAt - the value for the mailedAt record component
      serverID - the value for the serverID record component
  • Method Details

    • isPending

      public boolean isPending()
      Tells whether a mail about the attempt is still due.
      Returns:
      true while mailKind is null.
    • toInfo

      public FailedSignInInfo toInfo()
      The attempt as the SignIn module gets it.
      Returns:
      The information, nothing secret in it.
    • 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 the compare method from their corresponding wrapper classes.
      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.
    • id

      public long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • uid

      public long uid()
      Returns the value of the uid record component.
      Returns:
      the value of the uid record component
    • time

      public long time()
      Returns the value of the time record component.
      Returns:
      the value of the time record component
    • step

      public FailedSignInStep step()
      Returns the value of the step record component.
      Returns:
      the value of the step record component
    • afterPassword

      public boolean afterPassword()
      Returns the value of the afterPassword record component.
      Returns:
      the value of the afterPassword record component
    • urgent

      public boolean urgent()
      Returns the value of the urgent record component.
      Returns:
      the value of the urgent record component
    • appID

      public String appID()
      Returns the value of the appID record component.
      Returns:
      the value of the appID record component
    • deviceName

      public String deviceName()
      Returns the value of the deviceName record component.
      Returns:
      the value of the deviceName record component
    • address

      public String address()
      Returns the value of the address record component.
      Returns:
      the value of the address record component
    • place

      public String place()
      Returns the value of the place record component.
      Returns:
      the value of the place record component
    • mailKind

      public String mailKind()
      Returns the value of the mailKind record component.
      Returns:
      the value of the mailKind record component
    • mailedAt

      public Long mailedAt()
      Returns the value of the mailedAt record component.
      Returns:
      the value of the mailedAt record component
    • serverID

      public String serverID()
      Returns the value of the serverID record component.
      Returns:
      the value of the serverID record component