Class KmsClient.KmsClientBuilder
java.lang.Object
com.salesforce.multicloudj.kms.client.KmsClient.KmsClientBuilder
- Enclosing class:
- KmsClient
Builder class for KmsClient.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns an instance of KmsClient.withCredentialsOverrider(CredentialsOverrider credentialsOverrider) Method to supply credentialsOverriderwithEndpoint(URI endpoint) Method to supply an endpoint overridewithKeyContainer(String keyContainer) Method to supply the provider resource that keys are created in and short key ids are resolved against.withProperties(Properties properties) Method to supply provider-specific settings that have no portable builder method.withProxyEndpoint(URI proxyEndpoint) Method to supply a proxy endpoint that requests to the key management service are sent throughwithRegion(String region) Method to supply regionwithRetryConfig(RetryConfig retryConfig) Method to supply retry configuration
-
Constructor Details
-
KmsClientBuilder
Constructor for KmsClientBuilder.- Parameters:
providerId- the ID of the provider such as "aws", "gcp", or "ali"
-
-
Method Details
-
withRegion
Method to supply region- Parameters:
region- Region- Returns:
- An instance of self
-
withEndpoint
Method to supply an endpoint override- Parameters:
endpoint- The endpoint override- Returns:
- An instance of self
-
withProxyEndpoint
Method to supply a proxy endpoint that requests to the key management service are sent through- Parameters:
proxyEndpoint- The proxy endpoint override- Returns:
- An instance of self
-
withKeyContainer
Method to supply the provider resource that keys are created in and short key ids are resolved against. Providers that do not group keys under a parent resource ignore it.- Parameters:
keyContainer- Fully qualified native name of the key container- Returns:
- An instance of self
-
withCredentialsOverrider
public KmsClient.KmsClientBuilder withCredentialsOverrider(CredentialsOverrider credentialsOverrider) Method to supply credentialsOverrider- Parameters:
credentialsOverrider- CredentialsOverrider- Returns:
- An instance of self
-
withRetryConfig
Method to supply retry configuration- Parameters:
retryConfig- The retry configuration to use for retrying failed requests- Returns:
- An instance of self
-
withProperties
Method to supply provider-specific settings that have no portable builder method.- Parameters:
properties- Provider-specific settings- Returns:
- An instance of self
-
build
Builds and returns an instance of KmsClient.- Returns:
- An instance of KmsClient.
-