Package io.camunda.client.impl.oauth
Class OAuthCredentialsProviderBuilder
java.lang.Object
io.camunda.client.impl.oauth.OAuthCredentialsProviderBuilder
-
Field Summary
Fields -
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 requests to the OAuth credentials provider.credentialsCachePath(String cachePath) The location for the credentials cache file.keystoreKeyPassword(String keystoreKeyPassword) Keystore key password used for OAuth identity providerkeystorePassword(String keystorePassword) Password to keystore used for OAuth identity providerkeystorePath(Path keystorePath) Path to keystore used for OAuth identity providerreadTimeout(Duration readTimeout) The data read timeout of requests to the OAuth credentials provider.The resource for which the access token should be valid.The scopes of the access token.truststorePassword(String truststorePassword) Password to truststore used for OAuth identity providertruststorePath(Path truststorePath) Path to truststore used for OAuth identity provider
-
Field Details
-
INVALID_ARGUMENT_MSG
- See Also:
-
DEFAULT_CONNECT_TIMEOUT
-
DEFAULT_READ_TIMEOUT
-
DEFAULT_CREDENTIALS_CACHE_PATH
-
-
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. -
resource
The resource for which the access token should be valid. -
getResource
- See Also:
-
authorizationServerUrl
The authorization server's URL, from which the access token will be requested. -
keystorePath
Path to keystore used for OAuth identity provider -
keystorePassword
Password to keystore used for OAuth identity provider -
keystoreKeyPassword
Keystore key password used for OAuth identity provider -
truststorePath
Path to truststore used for OAuth identity provider -
truststorePassword
Password to truststore used for OAuth identity provider -
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 requests to the OAuth credentials provider. The default value is 5 seconds. Max value isInteger.MAX_VALUEmilliseconds. -
getConnectTimeout
- See Also:
-
readTimeout
The data read timeout of requests to the OAuth credentials provider. The default value is 5 seconds. Max value isInteger.MAX_VALUEmilliseconds. -
getReadTimeout
- See Also:
-
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
-
build
- Returns:
- a new
OAuthCredentialsProviderwith the provided configuration options.
-