Record Class AdminAccountChanges.Done
java.lang.Object
java.lang.Record
com.iizix.server.user.AdminAccountChanges.Done
- Record Components:
devices- The device tokens revoked: every device that stayed signed in or was trusted.passkeys- The passkeys deleted (a reset), 0 for a sign-out.secondFactor- true when an authenticator app was deleted (a reset).recoveryCodes- The unused recovery codes deleted with it.sessions- The open sessions ended.
- Enclosing class:
AdminAccountChanges
public static record AdminAccountChanges.Done(int devices, int passkeys, boolean secondFactor, int recoveryCodes, int sessions) extends Record
What a sign-out of every device or a reset of the sign-in methods did.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionDone(int devices, int passkeys, boolean secondFactor, int recoveryCodes, int sessions) Creates an instance of aDonerecord 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.intpasskeys()Returns the value of thepasskeysrecord component.intReturns the value of therecoveryCodesrecord component.booleanReturns the value of thesecondFactorrecord component.intsessions()Returns the value of thesessionsrecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
Done
public Done(int devices, int passkeys, boolean secondFactor, int recoveryCodes, int sessions) Creates an instance of aDonerecord class.- Parameters:
devices- the value for thedevicesrecord componentpasskeys- the value for thepasskeysrecord componentsecondFactor- the value for thesecondFactorrecord componentrecoveryCodes- the value for therecoveryCodesrecord componentsessions- the value for thesessionsrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes.devices
passkeys
secondFactor
public boolean 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
sessions