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 aRecoveryCodeLoginResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.failure()
final int
hashCode()
Returns a hash code value for this object.boolean
newCodes()
Returns the value of thenewCodes
record component.(package private) static RecoveryCodesService.RecoveryCodeLoginResult
regenerated
(List<String> newCodes) status()
Returns the value of thestatus
record component.success()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RecoveryCodeLoginResult
public RecoveryCodeLoginResult(RecoveryCodesService.RecoveryCodeLoginResult.Status status, List<String> newCodes) Creates an instance of aRecoveryCodeLoginResult
record class.- Parameters:
status
- the value for thestatus
record componentnewCodes
- the value for thenewCodes
record 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 thestatus
record component.- Returns:
- the value of the
status
record component
-
newCodes
Returns the value of thenewCodes
record component.- Returns:
- the value of the
newCodes
record component
-