Class OAuthCredentialsProviderBuilder
java.lang.Object
io.camunda.zeebe.client.impl.oauth.OAuthCredentialsProviderBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe resource for which the access token should be valid.authorizationServerUrl
(String authorizationServerUrl) The authorization server's URL, from which the access token will be requested.build()
Client id to be used when requesting access token from OAuth authorization server.clientSecret
(String clientSecret) Client secret to be used when requesting access token from OAuth authorization server.connectTimeout
(Duration connectTimeout) The connection timeout of request.credentialsCachePath
(String cachePath) The location for the credentials cache file.readTimeout
(Duration readTimeout) The data read timeout of request.The scopes of the access token.
-
Field Details
-
INVALID_ARGUMENT_MSG
- See Also:
-
OAUTH_ENV_CLIENT_ID
- See Also:
-
OAUTH_ENV_CLIENT_SECRET
- See Also:
-
OAUTH_ENV_TOKEN_AUDIENCE
- See Also:
-
OAUTH_ENV_TOKEN_SCOPE
- See Also:
-
OAUTH_ENV_AUTHORIZATION_SERVER
- See Also:
-
OAUTH_ENV_CACHE_PATH
- See Also:
-
OAUTH_ENV_CONNECT_TIMEOUT
- See Also:
-
OAUTH_ENV_READ_TIMEOUT
- See Also:
-
-
Constructor Details
-
OAuthCredentialsProviderBuilder
public OAuthCredentialsProviderBuilder()
-
-
Method Details
-
clientId
Client id to be used when requesting access token from OAuth authorization server. -
clientSecret
Client secret to be used when requesting access token from OAuth authorization server. -
audience
The resource for which the access token should be valid. -
scope
The scopes of the access token. -
authorizationServerUrl
The authorization server's URL, from which the access token will be requested. -
credentialsCachePath
The location for the credentials cache file. If none (or null) is specified the default will be $HOME/.camunda/credentials -
connectTimeout
The connection timeout of request. The default value is 5 seconds. Max value isInteger.MAX_VALUE
milliseconds. -
getConnectTimeout
- See Also:
-
readTimeout
The data read timeout of request. The default value is 5 seconds. Max value isInteger.MAX_VALUE
milliseconds. -
getReadTimeout
- See Also:
-
build
- Returns:
- a new
OAuthCredentialsProvider
with the provided configuration options.
-