Class OAuthClientRegistrationProviderDetails
- All Implemented Interfaces:
Serializable
ClientRegistration.ProviderDetails to allow correspondence with a
persistent version of the same.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanURI that can either be an OpenID Connect discovery endpoint or an OAuth 2.0 Authorization Server Metadata endpoint defined by RFC 8414.The ID of the registered provider.inthashCode()voidsetAuthorizationUri(String authorizationUri) voidsetConfigurationMetadata(Map<String, Object> configurationMetadata) voidsetIssuerUri(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.voidsetJwkSetUri(String jwkSetUri) voidsetRegistrationId(String registrationId) The ID of the registered provider.voidsetTokenUri(String tokenUri) voidsetUserInfoEndpoint(OAuthClientRegistrationProviderDetails.UserInfoEndpoint userInfoEndpoint) toString()
-
Constructor Details
-
OAuthClientRegistrationProviderDetails
public OAuthClientRegistrationProviderDetails()
-
-
Method Details
-
getRegistrationId
The ID of the registered provider. Should matchOAuthClientRegistrationWrapper.getRegistrationId().- Returns:
- The ID of the registered provider.
-
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.
This value is not persisted in the database. This means in scenarios where a client registration has been defined both via configuration properties and in the DB directly, the configuration properties representation may have an issuerUri, while the representation loaded from the database will not have an issuerUri. For this reason, when the instances are compared, we intentionally exclude the issuerUri field from Equals/HashCode by default. Issuer URI can be compared explicitly in the use-cases that require it.
- 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
- See Also:
-
ClientRegistration.ProviderDetails.getAuthorizationUri()
-
getTokenUri
- See Also:
-
ClientRegistration.ProviderDetails.getTokenUri()
-
getUserInfoEndpoint
- See Also:
-
ClientRegistration.ProviderDetails.getUserInfoEndpoint()
-
getJwkSetUri
- See Also:
-
ClientRegistration.ProviderDetails.getJwkSetUri()
-
getConfigurationMetadata
- See Also:
-
ClientRegistration.ProviderDetails.getConfigurationMetadata()
-
setRegistrationId
The ID of the registered provider. Should matchOAuthClientRegistrationWrapper.getRegistrationId().- Parameters:
registrationId- The ID of the registered provider.
-
setIssuerUri
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.
This value is not persisted in the database. This means in scenarios where a client registration has been defined both via configuration properties and in the DB directly, the configuration properties representation may have an issuerUri, while the representation loaded from the database will not have an issuerUri. For this reason, when the instances are compared, we intentionally exclude the issuerUri field from Equals/HashCode by default. Issuer URI can be compared explicitly in the use-cases that require it.
- 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
- See Also:
-
ClientRegistration.ProviderDetails.getAuthorizationUri()
-
setTokenUri
- See Also:
-
ClientRegistration.ProviderDetails.getTokenUri()
-
setUserInfoEndpoint
public void setUserInfoEndpoint(OAuthClientRegistrationProviderDetails.UserInfoEndpoint userInfoEndpoint) - See Also:
-
ClientRegistration.ProviderDetails.getUserInfoEndpoint()
-
setJwkSetUri
- See Also:
-
ClientRegistration.ProviderDetails.getJwkSetUri()
-
setConfigurationMetadata
- See Also:
-
ClientRegistration.ProviderDetails.getConfigurationMetadata()
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-