public final class ReactiveOAuth2AuthorizedClientProviderBuilder
extends java.lang.Object
DelegatingReactiveOAuth2AuthorizedClientProvider
composed of
one or more ReactiveOAuth2AuthorizedClientProvider
(s) that implement specific authorization grants.
The supported authorization grants are authorization_code
,
refresh_token
, client_credentials
and password
.
In addition to the standard authorization grants, an implementation of an extension grant
may be supplied via provider(ReactiveOAuth2AuthorizedClientProvider)
.ReactiveOAuth2AuthorizedClientProvider
,
AuthorizationCodeReactiveOAuth2AuthorizedClientProvider
,
RefreshTokenReactiveOAuth2AuthorizedClientProvider
,
ClientCredentialsReactiveOAuth2AuthorizedClientProvider
,
PasswordReactiveOAuth2AuthorizedClientProvider
,
DelegatingReactiveOAuth2AuthorizedClientProvider
Modifier and Type | Class and Description |
---|---|
class |
ReactiveOAuth2AuthorizedClientProviderBuilder.AuthorizationCodeGrantBuilder
A builder for the
authorization_code grant. |
class |
ReactiveOAuth2AuthorizedClientProviderBuilder.ClientCredentialsGrantBuilder
A builder for the
client_credentials grant. |
class |
ReactiveOAuth2AuthorizedClientProviderBuilder.PasswordGrantBuilder
A builder for the
password grant. |
class |
ReactiveOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder
A builder for the
refresh_token grant. |
public static ReactiveOAuth2AuthorizedClientProviderBuilder builder()
ReactiveOAuth2AuthorizedClientProviderBuilder
for configuring the supported authorization grant(s).ReactiveOAuth2AuthorizedClientProviderBuilder
public ReactiveOAuth2AuthorizedClientProviderBuilder provider(ReactiveOAuth2AuthorizedClientProvider provider)
ReactiveOAuth2AuthorizedClientProvider
to be composed with the DelegatingReactiveOAuth2AuthorizedClientProvider
.
This may be used for implementations of extension authorization grants.ReactiveOAuth2AuthorizedClientProviderBuilder
public ReactiveOAuth2AuthorizedClientProviderBuilder authorizationCode()
authorization_code
grant.ReactiveOAuth2AuthorizedClientProviderBuilder
public ReactiveOAuth2AuthorizedClientProviderBuilder refreshToken()
refresh_token
grant.ReactiveOAuth2AuthorizedClientProviderBuilder
public ReactiveOAuth2AuthorizedClientProviderBuilder refreshToken(java.util.function.Consumer<ReactiveOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder> builderConsumer)
refresh_token
grant.builderConsumer
- a Consumer
of ReactiveOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder
used for further configurationReactiveOAuth2AuthorizedClientProviderBuilder
public ReactiveOAuth2AuthorizedClientProviderBuilder clientCredentials()
client_credentials
grant.ReactiveOAuth2AuthorizedClientProviderBuilder
public ReactiveOAuth2AuthorizedClientProviderBuilder clientCredentials(java.util.function.Consumer<ReactiveOAuth2AuthorizedClientProviderBuilder.ClientCredentialsGrantBuilder> builderConsumer)
client_credentials
grant.builderConsumer
- a Consumer
of ReactiveOAuth2AuthorizedClientProviderBuilder.ClientCredentialsGrantBuilder
used for further configurationReactiveOAuth2AuthorizedClientProviderBuilder
public ReactiveOAuth2AuthorizedClientProviderBuilder password()
password
grant.ReactiveOAuth2AuthorizedClientProviderBuilder
public ReactiveOAuth2AuthorizedClientProviderBuilder password(java.util.function.Consumer<ReactiveOAuth2AuthorizedClientProviderBuilder.PasswordGrantBuilder> builderConsumer)
password
grant.builderConsumer
- a Consumer
of ReactiveOAuth2AuthorizedClientProviderBuilder.PasswordGrantBuilder
used for further configurationReactiveOAuth2AuthorizedClientProviderBuilder
public ReactiveOAuth2AuthorizedClientProvider build()
DelegatingReactiveOAuth2AuthorizedClientProvider
composed of one or more ReactiveOAuth2AuthorizedClientProvider
(s).DelegatingReactiveOAuth2AuthorizedClientProvider