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 Details

    • providerId

      private final String providerId
      The field for the providerId record component.
    • userId

      private final UUID userId
      The field for the userId record component.
    • username

      private final String username
      The field for the username record component.
    • expiresAt

      private final Instant expiresAt
      The field for the expiresAt record component.
    • serialVersionUID

      private static final long serialVersionUID
      Serialization version.
      See Also:
  • Constructor Details

    • PendingIdentityLink

      public PendingIdentityLink(String providerId, UUID userId, String username, Instant expiresAt)
      Creates an instance of a PendingIdentityLink record class.
      Parameters:
      providerId - the value for the providerId record component
      userId - the value for the userId record component
      username - the value for the username record component
      expiresAt - the value for the expiresAt record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • providerId

      public String providerId()
      Returns the value of the providerId record component.
      Returns:
      the value of the providerId record component
    • userId

      public UUID userId()
      Returns the value of the userId record component.
      Returns:
      the value of the userId record component
    • username

      public String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • expiresAt

      public Instant expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component