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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetId()The system ID of the registrationThe ID of theTenantthis registration belongs to.inthashCode()voidsetAuthorizationGrantType(String authorizationGrantType) voidsetClientAuthenticationMethod(String clientAuthenticationMethod) voidsetClientId(String clientId) voidsetClientName(String clientName) voidsetClientSecret(String clientSecret) voidThe system ID of the registrationvoidsetProviderDetails(OAuthClientRegistrationProviderDetails providerDetails) voidsetRedirectUriTemplate(String redirectUriTemplate) voidsetRegistrationId(String registrationId) voidvoidsetTenantId(String tenantId) The ID of theTenantthis 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 theTenantthis registration belongs to. Different tenants can have different credentials for the same client provider (e.g. Facebook, Google).- Returns:
- The ID of the
Tenantthis 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.getRedirectUriTemplate()
-
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 theTenantthis registration belongs to. Different tenants can have different credentials for the same client provider (e.g. Facebook, Google).- Parameters:
tenantId- The ID of theTenantthis 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.getRedirectUriTemplate()
-
setScopes
- See Also:
-
ClientRegistration.getScopes()
-
setProviderDetails
- See Also:
-
ClientRegistration.getProviderDetails()OAuthClientRegistrationProviderDetails
-
setClientName
- See Also:
-
ClientRegistration.getClientName()
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-