Record Class TotpEnrollmentResponse
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.v1.generated.model.TotpEnrollmentResponse
- Record Components:
otpauthUri- The otpauth:// URI that carries the shared secret. Never logged.qrCode- The otpauth URI as a PNG QR code in a data URI (data:image/png;base64,...).
@Generated(value="org.openapitools.codegen.languages.SpringCodegen",
date="2026-11-08T20:21:45.782821081Z[Etc/UTC]",
comments="Generator version: 7.27.0")
public record TotpEnrollmentResponse(@NotNull String otpauthUri, @NotNull String qrCode)
extends Record
The secret of a pending authenticator app enrolment, as a URI and as a QR code
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NotNull StringThe field for theotpauthUrirecord component.private final @NotNull StringThe field for theqrCoderecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTotpEnrollmentResponse(@NotNull String otpauthUri, @NotNull String qrCode) Creates an instance of aTotpEnrollmentResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull StringReturns the value of theotpauthUrirecord component.@NotNull StringqrCode()Returns the value of theqrCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
otpauthUri
The field for theotpauthUrirecord component. -
qrCode
The field for theqrCoderecord component.
-
-
Constructor Details
-
TotpEnrollmentResponse
Creates an instance of aTotpEnrollmentResponserecord class.- Parameters:
otpauthUri- the value for theotpauthUrirecord componentqrCode- the value for theqrCoderecord 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). -
otpauthUri
Returns the value of theotpauthUrirecord component.- Returns:
- the value of the
otpauthUrirecord component
-
qrCode
Returns the value of theqrCoderecord component.- Returns:
- the value of the
qrCoderecord component
-