Class OAuthCredentialsProviderBuilder
java.lang.Object
io.camunda.zeebe.client.impl.oauth.OAuthCredentialsProviderBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyEnvironmentOverrides(boolean applyEnvironmentOverrides) The 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()booleanclientAssertionKeystoreKeyAlias(String clientAssertionKeystoreKeyAlias) clientAssertionKeystoreKeyPassword(String clientAssertionKeystoreKeyPassword) clientAssertionKeystorePassword(String clientAssertionKeystorePassword) clientAssertionKeystorePath(String clientAssertionKeystorePath) clientAssertionKeystorePath(Path clientAssertionKeystorePath) 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 resource for which the access token should be valid.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_TOKEN_RESOURCE
- 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:
-
OAUTH_ENV_CLIENT_ASSERTION_KEYSTORE_PATH
- See Also:
-
OAUTH_ENV_CLIENT_ASSERTION_KEYSTORE_PASSWORD
- See Also:
-
OAUTH_ENV_CLIENT_ASSERTION_KEYSTORE_KEY_ALIAS
- See Also:
-
OAUTH_ENV_CLIENT_ASSERTION_KEYSTORE_KEY_PASSWORD
- 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_VALUEmilliseconds. -
getConnectTimeout
- See Also:
-
readTimeout
The data read timeout of request. The default value is 5 seconds. Max value isInteger.MAX_VALUEmilliseconds. -
getReadTimeout
- See Also:
-
resource
The resource for which the access token should be valid. -
getResource
- See Also:
-
build
- Returns:
- a new
OAuthCredentialsProviderwith the provided configuration options.
-
clientAssertionKeystorePath
public OAuthCredentialsProviderBuilder clientAssertionKeystorePath(String clientAssertionKeystorePath) -
clientAssertionKeystorePath
public OAuthCredentialsProviderBuilder clientAssertionKeystorePath(Path clientAssertionKeystorePath) -
clientAssertionKeystorePassword
public OAuthCredentialsProviderBuilder clientAssertionKeystorePassword(String clientAssertionKeystorePassword) -
clientAssertionKeystoreKeyPassword
public OAuthCredentialsProviderBuilder clientAssertionKeystoreKeyPassword(String clientAssertionKeystoreKeyPassword) -
clientAssertionKeystoreKeyAlias
public OAuthCredentialsProviderBuilder clientAssertionKeystoreKeyAlias(String clientAssertionKeystoreKeyAlias) -
getClientAssertionKeystorePath
-
getClientAssertionKeystorePassword
-
getClientAssertionKeystoreKeyAlias
-
getClientAssertionKeystoreKeyPassword
-
clientAssertionEnabled
public boolean clientAssertionEnabled() -
applyEnvironmentOverrides
-