Record Class BreakGlassReset.Result
java.lang.Object
java.lang.Record
com.iizix.server.user.BreakGlassReset.Result
- Record Components:
outcome- What was done.userName- The account named, as the file spells it; null when the file names none.secondFactor- 1 when the second factor (the sealed TOTP secret) was deleted, otherwise 0.recoveryCodes- The unused recovery codes deleted with it.passkeys- The passkeys deleted.devices- The signed-in and trusted devices deleted.failures- The failed sign-ins cleared, which ends the hold of an account at the limit (AccountHold; CC-FIX-ADMIN-LOCKOUT, order 563); 0 when there were none.deleted- Whether the file was deleted.
- Enclosing class:
BreakGlassReset
public static record BreakGlassReset.Result(BreakGlassReset.Outcome outcome, String userName, int secondFactor, int recoveryCodes, int passkeys, int devices, int failures, boolean deleted) extends Record
What a start did, with the account and the count per kind of what went.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionResult(BreakGlassReset.Outcome outcome, String userName, int secondFactor, int recoveryCodes, int passkeys, int devices, int failures, boolean deleted) Creates an instance of aResultrecord class.Method Summary
Modifier and TypeMethodDescriptionbooleandeleted()Returns the value of thedeletedrecord component.intdevices()Returns the value of thedevicesrecord component.final booleanIndicates whether some other object is "equal to" this one.intfailures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.outcome()Returns the value of theoutcomerecord component.intpasskeys()Returns the value of thepasskeysrecord component.intReturns the value of therecoveryCodesrecord component.intReturns the value of thesecondFactorrecord component.final StringtoString()Returns a string representation of this record class.userName()Returns the value of theuserNamerecord component.
Constructor Details
Result
public Result(BreakGlassReset.Outcome outcome, String userName, int secondFactor, int recoveryCodes, int passkeys, int devices, int failures, boolean deleted) Creates an instance of aResultrecord class.- Parameters:
outcome- the value for theoutcomerecord componentuserName- the value for theuserNamerecord componentsecondFactor- the value for thesecondFactorrecord componentrecoveryCodes- the value for therecoveryCodesrecord componentpasskeys- the value for thepasskeysrecord componentdevices- the value for thedevicesrecord componentfailures- the value for thefailuresrecord componentdeleted- the value for thedeletedrecord component
Method Details
toString
hashCode
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 thecomparemethod from their corresponding wrapper classes.outcome
userName
secondFactor
public int secondFactor()Returns the value of thesecondFactorrecord component.- Returns:
- the value of the
secondFactorrecord component
recoveryCodes
public int recoveryCodes()Returns the value of therecoveryCodesrecord component.- Returns:
- the value of the
recoveryCodesrecord component
passkeys
devices
failures
deleted