Record Class DevelopmentAdminReset.Result
java.lang.Object
java.lang.Record
com.iizix.server.user.DevelopmentAdminReset.Result
- Record Components:
outcome- What was done.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 devices deleted.
- Enclosing class:
DevelopmentAdminReset
public static record DevelopmentAdminReset.Result(DevelopmentAdminReset.Outcome outcome, int secondFactor, int recoveryCodes, int passkeys, int devices) extends Record
What a start did, with the count per kind of what went.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionResult(DevelopmentAdminReset.Outcome outcome, int secondFactor, int recoveryCodes, int passkeys, int devices) Creates an instance of aResultrecord class.Method Summary
Modifier and TypeMethodDescriptionintdevices()Returns the value of thedevicesrecord component.final booleanIndicates whether some other object is "equal to" this one.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.
Constructor Details
Result
public Result(DevelopmentAdminReset.Outcome outcome, int secondFactor, int recoveryCodes, int passkeys, int devices) Creates an instance of aResultrecord class.- Parameters:
outcome- the value for theoutcomerecord componentsecondFactor- the value for thesecondFactorrecord componentrecoveryCodes- the value for therecoveryCodesrecord componentpasskeys- the value for thepasskeysrecord componentdevices- the value for thedevicesrecord 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
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