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