java.lang.Object
java.lang.Record
com.simtechdata.googleauthdecoder.OTPRecord
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmrecord component.digits()Returns the value of thedigitsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.issuer()Returns the value of theissuerrecord component.Returns the value of theotpAuthStringrecord component.otpName()Returns the value of theotpNamerecord component.Returns the value of theotpParamsrecord component.otpType()Returns the value of theotpTyperecord component.secret()Returns the value of thesecretrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aOTPRecordrecord class.- Parameters:
otpAuthString- the value for theotpAuthStringrecord componentotpType- the value for theotpTyperecord componentotpName- the value for theotpNamerecord componentotpParams- the value for theotpParamsrecord componentalgorithm- the value for thealgorithmrecord componentdigits- the value for thedigitsrecord componentissuer- the value for theissuerrecord componentsecret- the value for thesecretrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
otpAuthString
Returns the value of theotpAuthStringrecord component.- Returns:
- the value of the
otpAuthStringrecord component
-
otpType
Returns the value of theotpTyperecord component.- Returns:
- the value of the
otpTyperecord component
-
otpName
Returns the value of theotpNamerecord component.- Returns:
- the value of the
otpNamerecord component
-
otpParams
Returns the value of theotpParamsrecord component.- Returns:
- the value of the
otpParamsrecord component
-
algorithm
Returns the value of thealgorithmrecord component.- Returns:
- the value of the
algorithmrecord component
-
digits
Returns the value of thedigitsrecord component.- Returns:
- the value of the
digitsrecord component
-
issuer
Returns the value of theissuerrecord component.- Returns:
- the value of the
issuerrecord component
-
secret
Returns the value of thesecretrecord component.- Returns:
- the value of the
secretrecord component
-