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 anOAuthClientRegistrationWrapperthat is defined in application properties.getAll()Get allOAuthClientRegistrationWrapperobjects that are defined in application properties.wrapClientRegistration(org.springframework.security.oauth2.client.registration.ClientRegistration clientRegistration) Converts aClientRegistrationto aOAuthClientRegistrationWrapper.
-
Method Details
-
get
Get anOAuthClientRegistrationWrapperthat is defined in application properties.- Parameters:
registrationId-- Returns:
-
getAll
Collection<P> getAll()Get allOAuthClientRegistrationWrapperobjects that are defined in application properties.- Returns:
-
wrapClientRegistration
P wrapClientRegistration(org.springframework.security.oauth2.client.registration.ClientRegistration clientRegistration) Converts aClientRegistrationto aOAuthClientRegistrationWrapper.- Parameters:
clientRegistration-- Returns:
- OAuthClientRegistrationWrapper
-