public class OAuthClientRegistrationWrapper extends Object implements Serializable
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 and Description |
---|
OAuthClientRegistrationWrapper() |
public String getId()
public String getTenantId()
Tenant
this registration belongs to. Different tenants can have
different credentials for the same client provider (e.g. Facebook, Google).Tenant
this registration belongs to.public String getRegistrationId()
ClientRegistration.getRegistrationId()
public String getClientId()
ClientRegistration.getClientId()
public String getClientSecret()
ClientRegistration.getClientSecret()
public String getClientAuthenticationMethod()
ClientRegistration.getClientAuthenticationMethod()
public String getAuthorizationGrantType()
ClientRegistration.getAuthorizationGrantType()
public String getRedirectUriTemplate()
ClientRegistration.getRedirectUriTemplate()
public OAuthClientRegistrationProviderDetails getProviderDetails()
ClientRegistration.getProviderDetails()
,
OAuthClientRegistrationProviderDetails
public String getClientName()
ClientRegistration.getClientName()
public void setId(String id)
id
- the system ID of the registrationpublic void setTenantId(String tenantId)
Tenant
this registration belongs to. Different tenants can have
different credentials for the same client provider (e.g. Facebook, Google).tenantId
- The ID of the Tenant
this registration belongs to.public void setRegistrationId(String registrationId)
ClientRegistration.getRegistrationId()
public void setClientId(String clientId)
ClientRegistration.getClientId()
public void setClientSecret(String clientSecret)
ClientRegistration.getClientSecret()
public void setClientAuthenticationMethod(String clientAuthenticationMethod)
ClientRegistration.getClientAuthenticationMethod()
public void setAuthorizationGrantType(String authorizationGrantType)
ClientRegistration.getAuthorizationGrantType()
public void setRedirectUriTemplate(String redirectUriTemplate)
ClientRegistration.getRedirectUriTemplate()
public void setProviderDetails(OAuthClientRegistrationProviderDetails providerDetails)
ClientRegistration.getProviderDetails()
,
OAuthClientRegistrationProviderDetails
public void setClientName(String clientName)
ClientRegistration.getClientName()
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.