Record Class SignInMethods.TotpEntry

java.lang.Object
java.lang.Record
com.iizix.user.SignInMethods.TotpEntry
Record Components:
issuer - The issuer, e.g. the server's name.
account - The account, the user name at the enrolment.
stored - true when both come from the enrolment, false when the issuer is the server's of today and the account the user name of today.
Enclosing class:
SignInMethods

public static record SignInMethods.TotpEntry(String issuer, String account, boolean stored) extends Record
The entry of a user's authenticator app, as the app shows it: the issuer and the account of the otpauth:// URI the enrolment's QR code carried (CC-FIX-SIGNIN-RECOVERY). An enrolment made before the names were stored has none: the server's issuer of today stands in, and stored says so, so that the page can say the entry may carry an earlier name.
Author:
Christopher Mindus
  • Constructor Details

    • TotpEntry

      public TotpEntry(String issuer, String account, boolean stored)
      Creates an instance of a TotpEntry record class.
      Parameters:
      issuer - the value for the issuer record component
      account - the value for the account record component
      stored - the value for the stored 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.
    • issuer

      public String issuer()
      Returns the value of the issuer record component.
      Returns:
      the value of the issuer record component
    • account

      public String account()
      Returns the value of the account record component.
      Returns:
      the value of the account record component
    • stored

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