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 Details

    • get

      P get(String registrationId)
      Get an OAuthClientRegistrationWrapper that is defined in application properties.
      Parameters:
      registrationId -
      Returns:
    • getAll

      Collection<P> getAll()
      Get all OAuthClientRegistrationWrapper objects that are defined in application properties.
      Returns:
    • wrapClientRegistration

      P wrapClientRegistration(org.springframework.security.oauth2.client.registration.ClientRegistration clientRegistration)
      Converts a ClientRegistration to a OAuthClientRegistrationWrapper.
      Parameters:
      clientRegistration -
      Returns:
      OAuthClientRegistrationWrapper