Record Class RecoveryCodesService.RecoveryCodeLoginResult
java.lang.Object
java.lang.Record
eu.rarogsoftware.rarog.platform.security.mfa.recovery.RecoveryCodesService.RecoveryCodeLoginResult
- Enclosing interface:
- RecoveryCodesService
public static record RecoveryCodesService.RecoveryCodeLoginResult(RecoveryCodesService.RecoveryCodeLoginResult.Status status, List<String> newCodes)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRecoveryCodeLoginResult(RecoveryCodesService.RecoveryCodeLoginResult.Status status, List<String> newCodes) Creates an instance of aRecoveryCodeLoginResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.failure()final inthashCode()Returns a hash code value for this object.booleannewCodes()Returns the value of thenewCodesrecord component.(package private) static RecoveryCodesService.RecoveryCodeLoginResultregenerated(List<String> newCodes) status()Returns the value of thestatusrecord component.success()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RecoveryCodeLoginResult
public RecoveryCodeLoginResult(RecoveryCodesService.RecoveryCodeLoginResult.Status status, List<String> newCodes) Creates an instance of aRecoveryCodeLoginResultrecord class.- Parameters:
status- the value for thestatusrecord componentnewCodes- the value for thenewCodesrecord component
-
-
Method Details
-
success
-
failure
-
regenerated
-
isSuccess
public boolean isSuccess() -
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). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
newCodes
Returns the value of thenewCodesrecord component.- Returns:
- the value of the
newCodesrecord component
-