Interface ClientRegistrationPropertiesService<P extends OAuthClientRegistrationWrapper>
-
- All Known Implementing Classes:
DefaultClientRegistrationPropertiesService
public interface ClientRegistrationPropertiesService<P extends OAuthClientRegistrationWrapper>This service is intended to provideOAuthClientRegistrationWrapperobjects built fromOAuth2ClientPropertiesdefined through application properties. All methods of this class should gracefully return null if theOAuth2ClientPropertiesproperties are not set. This service is not intended to be used directly. Instead, aBroadleafClientRegistrationRepositoryshould generally be used for gettingOAuthClientRegistrationWrapperobjects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Pget(String registrationId)Get anOAuthClientRegistrationWrapperthat is defined in application properties.Collection<P>getAll()Get allOAuthClientRegistrationWrapperobjects that are defined in application properties.PwrapClientRegistration(org.springframework.security.oauth2.client.registration.ClientRegistration clientRegistration)Converts aClientRegistrationto aOAuthClientRegistrationWrapper.
-
-
-
Method Detail
-
get
P get(String registrationId)
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
-
-