Package sk.iway.iwcm.users.devices
Record Class AdminDeviceService.PendingLogin
java.lang.Object
java.lang.Record
sk.iway.iwcm.users.devices.AdminDeviceService.PendingLogin
- All Implemented Interfaces:
Serializable
- Enclosing class:
- AdminDeviceService
public static record AdminDeviceService.PendingLogin(Identity user, long deviceId, String tokenHash, String nonce, long expiresAt)
extends Record
implements Serializable
Holds the authenticated identity outside both login contexts until the email code succeeds.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPendingLogin(Identity user, long deviceId, String tokenHash, String nonce, long expiresAt) Creates an instance of aPendingLoginrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongdeviceId()Returns the value of thedeviceIdrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.nonce()Returns the value of thenoncerecord component.Returns the value of thetokenHashrecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Constructor Details
-
PendingLogin
Creates an instance of aPendingLoginrecord class.- Parameters:
user- the value for theuserrecord componentdeviceId- the value for thedeviceIdrecord componenttokenHash- the value for thetokenHashrecord componentnonce- the value for thenoncerecord componentexpiresAt- the value for theexpiresAtrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
deviceId
public long deviceId()Returns the value of thedeviceIdrecord component.- Returns:
- the value of the
deviceIdrecord component
-
tokenHash
Returns the value of thetokenHashrecord component.- Returns:
- the value of the
tokenHashrecord component
-
nonce
Returns the value of thenoncerecord component.- Returns:
- the value of the
noncerecord component
-
expiresAt
public long expiresAt()Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-