Interface ClientRegistrationPropertiesService<P extends OAuthClientRegistrationWrapper>
-
- All Known Implementing Classes:
DefaultClientRegistrationPropertiesService
public interface ClientRegistrationPropertiesService<P extends OAuthClientRegistrationWrapper>
This service is intended to provideOAuthClientRegistrationWrapper
objects built fromOAuth2ClientProperties
defined through application properties. All methods of this class should gracefully return null if theOAuth2ClientProperties
properties are not set. This service is not intended to be used directly. Instead, aBroadleafClientRegistrationRepository
should generally be used for gettingOAuthClientRegistrationWrapper
objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description P
get(String registrationId)
Get anOAuthClientRegistrationWrapper
that is defined in application properties.Collection<P>
getAll()
Get allOAuthClientRegistrationWrapper
objects that are defined in application properties.P
wrapClientRegistration(org.springframework.security.oauth2.client.registration.ClientRegistration clientRegistration)
Converts aClientRegistration
to aOAuthClientRegistrationWrapper
.
-
-
-
Method Detail
-
get
P get(String registrationId)
Get anOAuthClientRegistrationWrapper
that is defined in application properties.- Parameters:
registrationId
-- Returns:
-
getAll
Collection<P> getAll()
Get allOAuthClientRegistrationWrapper
objects that are defined in application properties.- Returns:
-
wrapClientRegistration
P wrapClientRegistration(org.springframework.security.oauth2.client.registration.ClientRegistration clientRegistration)
Converts aClientRegistration
to aOAuthClientRegistrationWrapper
.- Parameters:
clientRegistration
-- Returns:
- OAuthClientRegistrationWrapper
-
-