public final class OAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder
extends java.lang.Object
refresh_token
grant.Modifier and Type | Method and Description |
---|---|
OAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder |
accessTokenResponseClient(OAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest> accessTokenResponseClient)
Sets the client used when requesting an access token credential at the Token
Endpoint.
|
OAuth2AuthorizedClientProvider |
build()
Builds an instance of
RefreshTokenOAuth2AuthorizedClientProvider . |
OAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder |
clock(java.time.Clock clock)
Sets the
Clock used in Instant.now(Clock) when checking the
access token expiry. |
OAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder |
clockSkew(java.time.Duration clockSkew)
Sets the maximum acceptable clock skew, which is used when checking the access
token expiry.
|
public OAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder accessTokenResponseClient(OAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest> accessTokenResponseClient)
accessTokenResponseClient
- the client used when requesting an access
token credential at the Token EndpointOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder
public OAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder clockSkew(java.time.Duration clockSkew)
Instant.now(this.clock) - clockSkew
.clockSkew
- the maximum acceptable clock skewOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder
public OAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder clock(java.time.Clock clock)
Clock
used in Instant.now(Clock)
when checking the
access token expiry.clock
- the clockOAuth2AuthorizedClientProviderBuilder.RefreshTokenGrantBuilder
public OAuth2AuthorizedClientProvider build()
RefreshTokenOAuth2AuthorizedClientProvider
.RefreshTokenOAuth2AuthorizedClientProvider