Record Class PendingIdentityLink
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.social.PendingIdentityLink
- Record Components:
providerId- registration id of the provider.userId- identifier of the signed-in account.username- name of the signed-in account.expiresAt- instant after which the marker is ignored.
- All Implemented Interfaces:
Serializable
public record PendingIdentityLink(String providerId, UUID userId, String username, Instant expiresAt)
extends Record
implements Serializable
The marker a signed-in user leaves in the session when asking to link an identity of an external provider: the next
sign-in with that provider, before the marker expires, links the identity to this account instead of signing
anybody in. It is kept in the session, so it is serializable.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InstantThe field for theexpiresAtrecord component.private final StringThe field for theproviderIdrecord component.private static final longSerialization version.private final UUIDThe field for theuserIdrecord component.private final StringThe field for theusernamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPendingIdentityLink(String providerId, UUID userId, String username, Instant expiresAt) Creates an instance of aPendingIdentityLinkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theproviderIdrecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.username()Returns the value of theusernamerecord component.
-
Field Details
-
providerId
The field for theproviderIdrecord component. -
userId
The field for theuserIdrecord component. -
username
The field for theusernamerecord component. -
expiresAt
The field for theexpiresAtrecord component. -
serialVersionUID
private static final long serialVersionUIDSerialization version.- See Also:
-
-
Constructor Details
-
PendingIdentityLink
Creates an instance of aPendingIdentityLinkrecord class.- Parameters:
providerId- the value for theproviderIdrecord componentuserId- the value for theuserIdrecord componentusername- the value for theusernamerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
providerId
Returns the value of theproviderIdrecord component.- Returns:
- the value of the
providerIdrecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-