Record Class AuthenticatedUser.Removal
java.lang.Object
java.lang.Record
com.iizix.server.user.AuthenticatedUser.Removal
- Record Components:
removed- true when the row was deleted; false when the user was not found (nothing else was done).devices- The device tokens revoked: every device that stayed signed in or was trusted for the second step.subscriptions- The Push Notification subscriptions removed.secondFactor- true when an authenticator app was deleted.recoveryCodes- The unused recovery codes deleted with it.passkeys- The passkeys deleted.sessions- The open sessions ended, in every application of this server.
- Enclosing class:
AuthenticatedUser
public static record AuthenticatedUser.Removal(boolean removed, int devices, int subscriptions, boolean secondFactor, int recoveryCodes, int passkeys, int sessions) extends Record
What the removal of an account did (CC-FIX-USER-DELETE-SIGNOUT, the owner's rule of 2026-10-30): everything of the user goes with its row, at once.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionRemoval(boolean removed, int devices, int subscriptions, boolean secondFactor, int recoveryCodes, int passkeys, int sessions) Creates an instance of aRemovalrecord 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.booleanremoved()Returns the value of theremovedrecord component.booleanReturns the value of thesecondFactorrecord component.intsessions()Returns the value of thesessionsrecord component.intReturns the value of thesubscriptionsrecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
Removal
public Removal(boolean removed, int devices, int subscriptions, boolean secondFactor, int recoveryCodes, int passkeys, int sessions) Creates an instance of aRemovalrecord class.- Parameters:
removed- the value for theremovedrecord componentdevices- the value for thedevicesrecord componentsubscriptions- the value for thesubscriptionsrecord componentsecondFactor- the value for thesecondFactorrecord componentrecoveryCodes- the value for therecoveryCodesrecord componentpasskeys- the value for thepasskeysrecord 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.removed
devices
subscriptions
public int subscriptions()Returns the value of thesubscriptionsrecord component.- Returns:
- the value of the
subscriptionsrecord component
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
passkeys
sessions