Class OAuthClientRegistrationWrapper
java.lang.Object
com.broadleafcommerce.auth.client.domain.OAuthClientRegistrationWrapper
- All Implemented Interfaces:
Serializable
Wrapper for
ClientRegistration
. This wrapper adds fields for id and tenantId.
This class is necessary because we are not able to use ClientRegistration
as the business
type counterpart to JpaOAuthClientRegistration
. This is because
ClientRegistration
is marked final
and the ModelMapper
created in
toMe/fromMe methods does not support mapping to final
classes.
When extending this domain, if desiring to still use
DefaultClientRegistrationPropertiesService
, ensure that
DefaultClientRegistrationPropertiesService#getWrapperType()
is overridden to return the
type of your wrapper extension as well.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getId()
The system ID of the registrationThe ID of theTenant
this registration belongs to.int
hashCode()
void
setAuthorizationGrantType
(String authorizationGrantType) void
setClientAuthenticationMethod
(String clientAuthenticationMethod) void
setClientId
(String clientId) void
setClientName
(String clientName) void
setClientSecret
(String clientSecret) void
The system ID of the registrationvoid
setProviderDetails
(OAuthClientRegistrationProviderDetails providerDetails) void
setRedirectUriTemplate
(String redirectUriTemplate) void
setRegistrationId
(String registrationId) void
void
setTenantId
(String tenantId) The ID of theTenant
this registration belongs to.toString()
-
Constructor Details
-
OAuthClientRegistrationWrapper
public OAuthClientRegistrationWrapper()
-
-
Method Details
-
getId
The system ID of the registration- Returns:
- the system ID of the registration
-
getTenantId
The ID of theTenant
this registration belongs to. Different tenants can have different credentials for the same client provider (e.g. Facebook, Google).- Returns:
- The ID of the
Tenant
this registration belongs to.
-
getRegistrationId
- See Also:
-
ClientRegistration.getRegistrationId()
-
getClientId
- See Also:
-
ClientRegistration.getClientId()
-
getClientSecret
- See Also:
-
ClientRegistration.getClientSecret()
-
getClientAuthenticationMethod
- See Also:
-
ClientRegistration.getClientAuthenticationMethod()
-
getAuthorizationGrantType
- See Also:
-
ClientRegistration.getAuthorizationGrantType()
-
getRedirectUriTemplate
- See Also:
-
ClientRegistration.getRedirectUri()
-
getScopes
- See Also:
-
ClientRegistration.getScopes()
-
getProviderDetails
- See Also:
-
ClientRegistration.getProviderDetails()
OAuthClientRegistrationProviderDetails
-
getClientName
- See Also:
-
ClientRegistration.getClientName()
-
setId
The system ID of the registration- Parameters:
id
- the system ID of the registration
-
setTenantId
The ID of theTenant
this registration belongs to. Different tenants can have different credentials for the same client provider (e.g. Facebook, Google).- Parameters:
tenantId
- The ID of theTenant
this registration belongs to.
-
setRegistrationId
- See Also:
-
ClientRegistration.getRegistrationId()
-
setClientId
- See Also:
-
ClientRegistration.getClientId()
-
setClientSecret
- See Also:
-
ClientRegistration.getClientSecret()
-
setClientAuthenticationMethod
- See Also:
-
ClientRegistration.getClientAuthenticationMethod()
-
setAuthorizationGrantType
- See Also:
-
ClientRegistration.getAuthorizationGrantType()
-
setRedirectUriTemplate
- See Also:
-
ClientRegistration.getRedirectUri()
-
setScopes
- See Also:
-
ClientRegistration.getScopes()
-
setProviderDetails
- See Also:
-
ClientRegistration.getProviderDetails()
OAuthClientRegistrationProviderDetails
-
setClientName
- See Also:
-
ClientRegistration.getClientName()
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-