public final class AmazonS3EncryptionClientV2Builder extends AmazonS3Builder<AmazonS3EncryptionClientV2Builder,AmazonS3EncryptionV2>
AwsClientBuilder.EndpointConfiguration| Constructor and Description |
|---|
AmazonS3EncryptionClientV2Builder() |
| Modifier and Type | Method and Description |
|---|---|
void |
setCryptoConfiguration(CryptoConfigurationV2 cryptoConfig)
Sets the crypto configuration whose parameters will be used to encrypt and decrypt data.
|
void |
setEncryptionMaterialsProvider(EncryptionMaterialsProvider encryptionMaterialsProvider)
Sets the encryption materials to be used to encrypt and decrypt data
|
void |
setKmsClient(AWSKMS kmsClient)
Sets the KMS implementation to be used throughout the crypto process.
|
static AmazonS3EncryptionClientV2Builder |
standard() |
AmazonS3EncryptionClientV2Builder |
withCryptoConfiguration(CryptoConfigurationV2 cryptoConfig)
Sets the crypto configuration whose parameters will be used to encrypt and decrypt data.
|
AmazonS3EncryptionClientV2Builder |
withEncryptionMaterialsProvider(EncryptionMaterialsProvider encryptionMaterialsProvider)
Sets the encryption materials to be used to encrypt and decrypt data.
|
AmazonS3EncryptionClientV2Builder |
withKmsClient(AWSKMS kmsClient)
Sets the KMS implementation to be used throughout the crypto process
|
disableChunkedEncoding, enableAccelerateMode, enableDualstack, enableForceGlobalBucketAccess, enablePathStyleAccess, enablePayloadSigning, enableRegionalUsEast1Endpoint, enableUseArnRegion, isAccelerateModeEnabled, isChunkedEncodingDisabled, isDualstackEnabled, isForceGlobalBucketAccessEnabled, isPathStyleAccessEnabled, isPayloadSigningEnabled, isRegionalUsEast1EndpointEnabled, isUseArnRegionEnabled, setAccelerateModeEnabled, setChunkedEncodingDisabled, setDualstackEnabled, setForceGlobalBucketAccessEnabled, setPathStyleAccessEnabled, setPayloadSigningEnabled, setRegionalUsEast1EndpointEnabled, withAccelerateModeEnabled, withChunkedEncodingDisabled, withDualstackEnabled, withForceGlobalBucketAccessEnabled, withPathStyleAccessEnabled, withPayloadSigningEnabled, withRegionalUsEast1EndpointEnabledbuildgetClientConfiguration, getClientSideMonitoringConfigurationProvider, getCredentials, getEndpoint, getMetricsCollector, getMonitoringListener, getRegion, getRequestHandlers, setClientConfiguration, setClientSideMonitoringConfigurationProvider, setCredentials, setEndpointConfiguration, setMetricsCollector, setMonitoringListener, setRegion, setRequestHandlers, withClientConfiguration, withClientSideMonitoringConfigurationProvider, withCredentials, withEndpointConfiguration, withMetricsCollector, withMonitoringListener, withRegion, withRegion, withRequestHandlerspublic static AmazonS3EncryptionClientV2Builder standard()
public void setEncryptionMaterialsProvider(EncryptionMaterialsProvider encryptionMaterialsProvider)
Note: If a non-KMS encryption materials provider is used, an internal KMS client will still be created by default.
See setKmsClient(AWSKMS) for more information.
encryptionMaterialsProvider - a provider for the encryption materialspublic AmazonS3EncryptionClientV2Builder withEncryptionMaterialsProvider(EncryptionMaterialsProvider encryptionMaterialsProvider)
Note: If a non-KMS encryption materials provider is used, an internal KMS client will still be created by default.
See withKmsClient(AWSKMS) for more information.
encryptionMaterialsProvider - A provider for the encryption materials to be used to encrypt and decrypt data.public void setCryptoConfiguration(CryptoConfigurationV2 cryptoConfig)
cryptoConfig - crypto configurationpublic AmazonS3EncryptionClientV2Builder withCryptoConfiguration(CryptoConfigurationV2 cryptoConfig)
cryptoConfig - crypto configurationpublic void setKmsClient(AWSKMS kmsClient)
If a KMS client isn't specified here, the encryption client creates a default internal KMS client.
Note: An internal KMS client is created even if the user supply their own encryption materials. If the KMS
client fails to find a region when it's instantiated, supply a client through this method or set the
KMS region through CryptoConfigurationV2.withAwsKmsRegion(Region).
kmsClient - an AWSKMS implementation (e.g. AWSKMSClient)public AmazonS3EncryptionClientV2Builder withKmsClient(AWSKMS kmsClient)
If a KMS client isn't specified here, the encryption client creates a default internal KMS client.
Note: An internal KMS client is created even if the user supply their own encryption materials. If the KMS
client fails to find a region when it's instantiated, supply a client through this method or set the
KMS region through CryptoConfigurationV2.withAwsKmsRegion(Region).
kmsClient - an AWSKMS implementation (e.g. AWSKMSClient)