public class ReactiveOAuth2AuthorizedClientProviderBuilder.PasswordGrantBuilder
extends java.lang.Object
password grant.| Modifier and Type | Method and Description |
|---|---|
ReactiveOAuth2AuthorizedClientProviderBuilder.PasswordGrantBuilder |
accessTokenResponseClient(ReactiveOAuth2AccessTokenResponseClient<OAuth2PasswordGrantRequest> accessTokenResponseClient)
Sets the client used when requesting an access token credential at the Token Endpoint.
|
ReactiveOAuth2AuthorizedClientProvider |
build()
Builds an instance of
PasswordReactiveOAuth2AuthorizedClientProvider. |
ReactiveOAuth2AuthorizedClientProviderBuilder.PasswordGrantBuilder |
clock(java.time.Clock clock)
Sets the
Clock used in Instant.now(Clock) when checking the access token expiry. |
ReactiveOAuth2AuthorizedClientProviderBuilder.PasswordGrantBuilder |
clockSkew(java.time.Duration clockSkew)
Sets the maximum acceptable clock skew, which is used when checking the access token expiry.
|
public ReactiveOAuth2AuthorizedClientProviderBuilder.PasswordGrantBuilder accessTokenResponseClient(ReactiveOAuth2AccessTokenResponseClient<OAuth2PasswordGrantRequest> accessTokenResponseClient)
accessTokenResponseClient - the client used when requesting an access token credential at the Token EndpointReactiveOAuth2AuthorizedClientProviderBuilder.PasswordGrantBuilderpublic ReactiveOAuth2AuthorizedClientProviderBuilder.PasswordGrantBuilder clockSkew(java.time.Duration clockSkew)
Instant.now(this.clock) - clockSkew.clockSkew - the maximum acceptable clock skewReactiveOAuth2AuthorizedClientProviderBuilder.PasswordGrantBuilderpublic ReactiveOAuth2AuthorizedClientProviderBuilder.PasswordGrantBuilder clock(java.time.Clock clock)
Clock used in Instant.now(Clock) when checking the access token expiry.clock - the clockReactiveOAuth2AuthorizedClientProviderBuilder.PasswordGrantBuilderpublic ReactiveOAuth2AuthorizedClientProvider build()
PasswordReactiveOAuth2AuthorizedClientProvider.PasswordReactiveOAuth2AuthorizedClientProvider