Class OAuthClientRegistrationProviderDetails
- java.lang.Object
-
- com.broadleafcommerce.auth.client.domain.OAuthClientRegistrationProviderDetails
-
- All Implemented Interfaces:
Serializable
public class OAuthClientRegistrationProviderDetails extends Object implements Serializable
A wrapper forClientRegistration.ProviderDetails
to allow correspondence with a persistent version of the same.- See Also:
OAuthClientRegistrationWrapper
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OAuthClientRegistrationProviderDetails.UserInfoEndpoint
-
Constructor Summary
Constructors Constructor Description OAuthClientRegistrationProviderDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getAuthorizationUri()
Map<String,Object>
getConfigurationMetadata()
String
getIssuerUri()
URI that can either be an OpenID Connect discovery endpoint or an OAuth 2.0 Authorization Server Metadata endpoint defined by RFC 8414.String
getJwkSetUri()
String
getRegistrationId()
The ID of the registered provider.String
getTokenUri()
OAuthClientRegistrationProviderDetails.UserInfoEndpoint
getUserInfoEndpoint()
int
hashCode()
void
setAuthorizationUri(String authorizationUri)
void
setConfigurationMetadata(Map<String,Object> configurationMetadata)
void
setIssuerUri(String issuerUri)
URI that can either be an OpenID Connect discovery endpoint or an OAuth 2.0 Authorization Server Metadata endpoint defined by RFC 8414.void
setJwkSetUri(String jwkSetUri)
void
setRegistrationId(String registrationId)
The ID of the registered provider.void
setTokenUri(String tokenUri)
void
setUserInfoEndpoint(OAuthClientRegistrationProviderDetails.UserInfoEndpoint userInfoEndpoint)
String
toString()
-
-
-
Method Detail
-
getRegistrationId
public String getRegistrationId()
The ID of the registered provider. Should matchOAuthClientRegistrationWrapper.getRegistrationId()
.- Returns:
- The ID of the registered provider.
-
getIssuerUri
public String getIssuerUri()
URI that can either be an OpenID Connect discovery endpoint or an OAuth 2.0 Authorization Server Metadata endpoint defined by RFC 8414.This is used to gather the provider details which would otherwise be unknown since some providers only provide this to integrators.
- Returns:
- URI that can either be an OpenID Connect discovery endpoint or an OAuth 2.0 Authorization Server Metadata endpoint defined by RFC 8414.
-
getAuthorizationUri
public String getAuthorizationUri()
- See Also:
ClientRegistration.ProviderDetails.getAuthorizationUri()
-
getTokenUri
public String getTokenUri()
- See Also:
ClientRegistration.ProviderDetails.getTokenUri()
-
getUserInfoEndpoint
public OAuthClientRegistrationProviderDetails.UserInfoEndpoint getUserInfoEndpoint()
- See Also:
ClientRegistration.ProviderDetails.getUserInfoEndpoint()
-
getJwkSetUri
public String getJwkSetUri()
- See Also:
ClientRegistration.ProviderDetails.getJwkSetUri()
-
getConfigurationMetadata
public Map<String,Object> getConfigurationMetadata()
- See Also:
ClientRegistration.ProviderDetails.getConfigurationMetadata()
-
setRegistrationId
public void setRegistrationId(String registrationId)
The ID of the registered provider. Should matchOAuthClientRegistrationWrapper.getRegistrationId()
.- Parameters:
registrationId
- The ID of the registered provider.
-
setIssuerUri
public void setIssuerUri(String issuerUri)
URI that can either be an OpenID Connect discovery endpoint or an OAuth 2.0 Authorization Server Metadata endpoint defined by RFC 8414.This is used to gather the provider details which would otherwise be unknown since some providers only provide this to integrators.
- Parameters:
issuerUri
- URI that can either be an OpenID Connect discovery endpoint or an OAuth 2.0 Authorization Server Metadata endpoint defined by RFC 8414.
-
setAuthorizationUri
public void setAuthorizationUri(String authorizationUri)
- See Also:
ClientRegistration.ProviderDetails.getAuthorizationUri()
-
setTokenUri
public void setTokenUri(String tokenUri)
- See Also:
ClientRegistration.ProviderDetails.getTokenUri()
-
setUserInfoEndpoint
public void setUserInfoEndpoint(OAuthClientRegistrationProviderDetails.UserInfoEndpoint userInfoEndpoint)
- See Also:
ClientRegistration.ProviderDetails.getUserInfoEndpoint()
-
setJwkSetUri
public void setJwkSetUri(String jwkSetUri)
- See Also:
ClientRegistration.ProviderDetails.getJwkSetUri()
-
setConfigurationMetadata
public void setConfigurationMetadata(Map<String,Object> configurationMetadata)
- See Also:
ClientRegistration.ProviderDetails.getConfigurationMetadata()
-
canEqual
protected boolean canEqual(Object other)
-
-