Record Class FailedSignInInfo

java.lang.Object
java.lang.Record
com.iizix.user.FailedSignInInfo
Record Components:
time - When, in epoch milliseconds (UTC).
step - The step that failed.
afterPassword - true when the password was right and a later step failed ("almost signed in"), false when the password itself was refused.
appID - The application the attempt was into, null when unknown.
deviceName - What the client said it was, e.g. "Browser, Windows", null when unknown.
address - The client address as text, null when unknown.
place - The place of the address, "city, region, country", null when unknown.
mailed - true when the user has been mailed about the attempt (at once, or in a batch), false when not (the setting off, no verified address, or not yet).

public record FailedSignInInfo(long time, FailedSignInStep step, boolean afterPassword, String appID, String deviceName, String address, String place, boolean mailed) extends Record
One failed attempt to sign in to a user's account, as the server kept it and as the SignIn module lists it to the user (CC-SIGNIN-FAILED-ATTEMPTS, order 561): when, at which step, from which client address and approximate place, from what device, into which application, and whether the user has been mailed about it. Nothing secret travels here: no password, no code, no exact position.
Author:
Christopher Mindus
  • Constructor Details

    • FailedSignInInfo

      public FailedSignInInfo(long time, FailedSignInStep step, boolean afterPassword, String appID, String deviceName, String address, String place, boolean mailed)
      Creates an instance of a FailedSignInInfo record class.
      Parameters:
      time - the value for the time record component
      step - the value for the step record component
      afterPassword - the value for the afterPassword 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
      mailed - the value for the mailed 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 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.
    • 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
    • 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
    • mailed

      public boolean mailed()
      Returns the value of the mailed record component.
      Returns:
      the value of the mailed record component