Class OAuth2AuthorizedClientId

java.lang.Object
org.springframework.security.oauth2.client.OAuth2AuthorizedClientId
All Implemented Interfaces:
Serializable

public final class OAuth2AuthorizedClientId extends Object implements Serializable
The identifier for OAuth2AuthorizedClient.
Since:
5.2
See Also:
  • Constructor Details

    • OAuth2AuthorizedClientId

      public OAuth2AuthorizedClientId(String clientRegistrationId, String principalName)
      Constructs an OAuth2AuthorizedClientId using the provided parameters.
      Parameters:
      clientRegistrationId - the identifier for the client's registration
      principalName - the name of the End-User Principal (Resource Owner)
  • Method Details

    • getClientRegistrationId

      public String getClientRegistrationId()
      Returns the identifier for the client registration.
      Returns:
      the identifier for the client registration
      Since:
      6.3
    • getPrincipalName

      public String getPrincipalName()
      Returns the name of the End-User Principal (Resource Owner).
      Returns:
      the name of the End-User
      Since:
      6.3
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object