Class OAuth2AuthorizedClientEntity

java.lang.Object
com.broadleafcommerce.auth.client.domain.OAuth2AuthorizedClientEntity
All Implemented Interfaces:
Serializable

public class OAuth2AuthorizedClientEntity extends Object implements Serializable
While OAuth2AuthorizedClient is the direct class used by Spring for security flows, this is the business domain representation of its persistence in Broadleaf. This provides a layer of separation and flexibility to customize the persisted representation before it is translated into OAuth2AuthorizedClient.
See Also:
  • Constructor Details

    • OAuth2AuthorizedClientEntity

      public OAuth2AuthorizedClientEntity()
  • Method Details

    • getTenantId

      public String getTenantId()
      See Also:
    • getClientRegistrationId

      public String getClientRegistrationId()
      See Also:
      • OAuth2AuthorizedClient.getClientRegistration()
    • getPrincipalName

      public String getPrincipalName()
      See Also:
      • OAuth2AuthorizedClient.getPrincipalName()
    • getAccessTokenType

      public String getAccessTokenType()
      See Also:
      • OAuth2AuthorizedClient.getAccessToken()
    • getAccessTokenValue

      public String getAccessTokenValue()
      See Also:
      • OAuth2AuthorizedClient.getAccessToken()
    • getAccessTokenIssuedAt

      public Instant getAccessTokenIssuedAt()
      See Also:
      • OAuth2AuthorizedClient.getAccessToken()
    • getAccessTokenExpiresAt

      public Instant getAccessTokenExpiresAt()
      See Also:
      • OAuth2AuthorizedClient.getAccessToken()
    • getAccessTokenScopes

      public Set<String> getAccessTokenScopes()
      See Also:
      • OAuth2AuthorizedClient.getAccessToken()
    • getRefreshTokenValue

      public String getRefreshTokenValue()
      See Also:
      • OAuth2AuthorizedClient.getRefreshToken()
    • getRefreshTokenIssuedAt

      public Instant getRefreshTokenIssuedAt()
      See Also:
      • OAuth2AuthorizedClient.getRefreshToken()
    • getRefreshTokenExpiresAt

      public Instant getRefreshTokenExpiresAt()
      See Also:
      • OAuth2AuthorizedClient.getRefreshToken()
    • setTenantId

      public void setTenantId(String tenantId)
      See Also:
    • setClientRegistrationId

      public void setClientRegistrationId(String clientRegistrationId)
      See Also:
      • OAuth2AuthorizedClient.getClientRegistration()
    • setPrincipalName

      public void setPrincipalName(String principalName)
      See Also:
      • OAuth2AuthorizedClient.getPrincipalName()
    • setAccessTokenType

      public void setAccessTokenType(String accessTokenType)
      See Also:
      • OAuth2AuthorizedClient.getAccessToken()
    • setAccessTokenValue

      public void setAccessTokenValue(String accessTokenValue)
      See Also:
      • OAuth2AuthorizedClient.getAccessToken()
    • setAccessTokenIssuedAt

      public void setAccessTokenIssuedAt(Instant accessTokenIssuedAt)
      See Also:
      • OAuth2AuthorizedClient.getAccessToken()
    • setAccessTokenExpiresAt

      public void setAccessTokenExpiresAt(Instant accessTokenExpiresAt)
      See Also:
      • OAuth2AuthorizedClient.getAccessToken()
    • setAccessTokenScopes

      public void setAccessTokenScopes(Set<String> accessTokenScopes)
      See Also:
      • OAuth2AuthorizedClient.getAccessToken()
    • setRefreshTokenValue

      public void setRefreshTokenValue(String refreshTokenValue)
      See Also:
      • OAuth2AuthorizedClient.getRefreshToken()
    • setRefreshTokenIssuedAt

      public void setRefreshTokenIssuedAt(Instant refreshTokenIssuedAt)
      See Also:
      • OAuth2AuthorizedClient.getRefreshToken()
    • setRefreshTokenExpiresAt

      public void setRefreshTokenExpiresAt(Instant refreshTokenExpiresAt)
      See Also:
      • OAuth2AuthorizedClient.getRefreshToken()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object