- 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 OAuth2AuthorizedClientManagerImplementations of this interface are responsible for the overall management of
The primary responsibilities include:
@Nullable OAuth2AuthorizedClient authorize(OAuth2AuthorizeRequest authorizeRequest)Attempt to authorize or re-authorize (if required) the
clientidentified by the provided
clientRegistrationId. Implementations must return
nullif authorization is not supported for the specified client, e.g. the associated
OAuth2AuthorizedClientProvider(s) does not support the
authorization granttype configured for the client.
In the case of re-authorization, implementations must return the provided
authorized clientif re-authorization is not supported for the client OR is not required, e.g. a
refresh tokenis not available OR the
access tokenis not expired.
authorizeRequest- the authorize request
nullif authorization is not supported for the specified client