Class ReactiveOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder
- java.lang.Object
-
- org.springframework.security.oauth2.client.ReactiveOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder
-
- Enclosing class:
- ReactiveOAuth2AuthorizedClientProviderBuilder
public final class ReactiveOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder extends java.lang.ObjectA builder for therefresh_tokengrant.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReactiveOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilderaccessTokenResponseClient(ReactiveOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest> accessTokenResponseClient)Sets the client used when requesting an access token credential at the Token Endpoint.ReactiveOAuth2AuthorizedClientProviderbuild()Builds an instance ofRefreshTokenReactiveOAuth2AuthorizedClientProvider.ReactiveOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilderclock(java.time.Clock clock)Sets theClockused inInstant.now(Clock)when checking the access token expiry.ReactiveOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilderclockSkew(java.time.Duration clockSkew)Sets the maximum acceptable clock skew, which is used when checking the access token expiry.
-
-
-
Method Detail
-
accessTokenResponseClient
public ReactiveOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder accessTokenResponseClient(ReactiveOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest> accessTokenResponseClient)
Sets the client used when requesting an access token credential at the Token Endpoint.- Parameters:
accessTokenResponseClient- the client used when requesting an access token credential at the Token Endpoint- Returns:
- the
ReactiveOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder
-
clockSkew
public ReactiveOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder clockSkew(java.time.Duration clockSkew)
Sets the maximum acceptable clock skew, which is used when checking the access token expiry. An access token is considered expired ifOAuth2Token#getExpiresAt() - clockSkewis before the current timeclock#instant().- Parameters:
clockSkew- the maximum acceptable clock skew- Returns:
- the
ReactiveOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder - See Also:
RefreshTokenReactiveOAuth2AuthorizedClientProvider.setClockSkew(Duration)
-
clock
public ReactiveOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder clock(java.time.Clock clock)
Sets theClockused inInstant.now(Clock)when checking the access token expiry.- Parameters:
clock- the clock- Returns:
- the
ReactiveOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder
-
build
public ReactiveOAuth2AuthorizedClientProvider build()
Builds an instance ofRefreshTokenReactiveOAuth2AuthorizedClientProvider.- Returns:
- the
RefreshTokenReactiveOAuth2AuthorizedClientProvider
-
-