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 aRecoveryCodeResultBeanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.(package private) static MfaRecoveryCodeLoginResource.RecoveryCodeResultBeanfailure()final inthashCode()Returns a hash code value for this object.newCodes()Returns the value of thenewCodesrecord component.booleanReturns the value of theregeneratedrecord component.(package private) static MfaRecoveryCodeLoginResource.RecoveryCodeResultBeanregenerated(List<String> newCodes) booleansuccess()Returns the value of thesuccessrecord component.(package private) static MfaRecoveryCodeLoginResource.RecoveryCodeResultBeanfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RecoveryCodeResultBean
Creates an instance of aRecoveryCodeResultBeanrecord class.- Parameters:
success- the value for thesuccessrecord componentregenerated- the value for theregeneratedrecord componentnewCodes- the value for thenewCodesrecord 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 thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
regenerated
public boolean regenerated()Returns the value of theregeneratedrecord component.- Returns:
- the value of the
regeneratedrecord component
-
newCodes
Returns the value of thenewCodesrecord component.- Returns:
- the value of the
newCodesrecord component
-