java.lang.Object
java.lang.Record
com.simtechdata.googleauthdecoder.OTPRecord

public record OTPRecord(String otpAuthString, String otpType, String otpName, String otpParams, String algorithm, String digits, String issuer, String secret) extends Record
  • Constructor Details

    • OTPRecord

      public OTPRecord(String otpAuthString, String otpType, String otpName, String otpParams, String algorithm, String digits, String issuer, String secret)
      Creates an instance of a OTPRecord record class.
      Parameters:
      otpAuthString - the value for the otpAuthString record component
      otpType - the value for the otpType record component
      otpName - the value for the otpName record component
      otpParams - the value for the otpParams record component
      algorithm - the value for the algorithm record component
      digits - the value for the digits record component
      issuer - the value for the issuer record component
      secret - the value for the secret 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • otpAuthString

      public String otpAuthString()
      Returns the value of the otpAuthString record component.
      Returns:
      the value of the otpAuthString record component
    • otpType

      public String otpType()
      Returns the value of the otpType record component.
      Returns:
      the value of the otpType record component
    • otpName

      public String otpName()
      Returns the value of the otpName record component.
      Returns:
      the value of the otpName record component
    • otpParams

      public String otpParams()
      Returns the value of the otpParams record component.
      Returns:
      the value of the otpParams record component
    • algorithm

      public String algorithm()
      Returns the value of the algorithm record component.
      Returns:
      the value of the algorithm record component
    • digits

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

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

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