Record Class MfaRecoveryCodeLoginResource.RecoveryCodeResultBean
java.lang.Object
java.lang.Record
eu.rarogsoftware.rarog.platform.app.rest.security.MfaRecoveryCodeLoginResource.RecoveryCodeResultBean
- Enclosing class:
- MfaRecoveryCodeLoginResource
-
Constructor Summary
ConstructorsConstructorDescriptionRecoveryCodeResultBean
(boolean success, boolean regenerated, List<String> newCodes) Creates an instance of aRecoveryCodeResultBean
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.(package private) static MfaRecoveryCodeLoginResource.RecoveryCodeResultBean
failure()
final int
hashCode()
Returns a hash code value for this object.newCodes()
Returns the value of thenewCodes
record component.boolean
Returns the value of theregenerated
record component.(package private) static MfaRecoveryCodeLoginResource.RecoveryCodeResultBean
regenerated
(List<String> newCodes) boolean
success()
Returns the value of thesuccess
record component.(package private) static MfaRecoveryCodeLoginResource.RecoveryCodeResultBean
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RecoveryCodeResultBean
Creates an instance of aRecoveryCodeResultBean
record class.- Parameters:
success
- the value for thesuccess
record componentregenerated
- the value for theregenerated
record componentnewCodes
- the value for thenewCodes
record component
-
-
Method Details
-
successful
-
failure
-
regenerated
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
success
public boolean success()Returns the value of thesuccess
record component.- Returns:
- the value of the
success
record component
-
regenerated
public boolean regenerated()Returns the value of theregenerated
record component.- Returns:
- the value of the
regenerated
record component
-
newCodes
Returns the value of thenewCodes
record component.- Returns:
- the value of the
newCodes
record component
-