Interface OAuth2AuthorizedClientProvider
- All Known Implementing Classes:
- AuthorizationCodeOAuth2AuthorizedClientProvider,- ClientCredentialsOAuth2AuthorizedClientProvider,- DelegatingOAuth2AuthorizedClientProvider,- JwtBearerOAuth2AuthorizedClientProvider,- PasswordOAuth2AuthorizedClientProvider,- RefreshTokenOAuth2AuthorizedClientProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A strategy for authorizing (or re-authorizing) an OAuth 2.0 Client. Implementations
 will typically implement a specific 
authorization grant
 type.- Since:
- 5.2
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionauthorize(OAuth2AuthorizationContext context) Attempt to authorize (or re-authorize) theclientin the provided context.
- 
Method Details- 
authorizeAttempt to authorize (or re-authorize) theclientin the provided context. Implementations must returnnullif authorization is not supported for the specified client, e.g. the provider doesn't support theauthorization granttype configured for the client.- Parameters:
- context- the context that holds authorization-specific state for the client
- Returns:
- the OAuth2AuthorizedClientornullif authorization is not supported for the specified client
 
 
-