- All Known Implementing Classes:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface OAuth2AuthorizedClientProviderA strategy for authorizing (or re-authorizing) an OAuth 2.0 Client. Implementations will typically implement a specific
@Nullable OAuth2AuthorizedClient authorize(OAuth2AuthorizationContext context)Attempt to authorize (or re-authorize) the
clientin the provided context. Implementations must return
nullif authorization is not supported for the specified client, e.g. the provider doesn't support the
authorization granttype configured for the client.
context- the context that holds authorization-specific state for the client
nullif authorization is not supported for the specified client