Interface ClientRegistrationPropertiesService<P extends OAuthClientRegistrationWrapper>
- All Known Implementing Classes:
DefaultClientRegistrationPropertiesService
public interface ClientRegistrationPropertiesService<P extends OAuthClientRegistrationWrapper>
This service is intended to provide
OAuthClientRegistrationWrapper
objects built from
OAuth2ClientProperties
defined through application properties. All methods of this class
should gracefully return null if the OAuth2ClientProperties
properties are not set.
This service is not intended to be used directly. Instead, a
BroadleafClientRegistrationRepository
should generally be used for getting
OAuthClientRegistrationWrapper
objects.-
Method Summary
Modifier and TypeMethodDescriptionGet anOAuthClientRegistrationWrapper
that is defined in application properties.getAll()
Get allOAuthClientRegistrationWrapper
objects that are defined in application properties.wrapClientRegistration
(org.springframework.security.oauth2.client.registration.ClientRegistration clientRegistration) Converts aClientRegistration
to aOAuthClientRegistrationWrapper
.
-
Method Details
-
get
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
-