com.amazonaws.services.s3.AmazonS3EncryptionClientParamsWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-s3 Show documentation
Show all versions of aws-java-sdk-s3 Show documentation
The AWS Java SDK for Amazon S3 module holds the client classes that are used for communicating with Amazon Simple Storage Service
/*
* Copyright (c) 2017. Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.s3;
import com.amazonaws.annotation.Immutable;
import com.amazonaws.annotation.SdkInternalApi;
import com.amazonaws.client.AwsSyncClientParams;
import com.amazonaws.services.kms.AWSKMS;
import com.amazonaws.services.s3.model.CryptoConfiguration;
import com.amazonaws.services.s3.model.EncryptionMaterialsProvider;
/**
* @deprecated This feature is in maintenance mode, no new updates will be released.
* Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information.
*/
@Immutable
@SdkInternalApi
@Deprecated
public final class AmazonS3EncryptionClientParamsWrapper extends AmazonS3EncryptionClientParams {
private final EncryptionMaterialsProvider encryptionMaterials;
private final CryptoConfiguration cryptoConfiguration;
private final AWSKMS kms;
private final AwsSyncClientParams getClientParams;
private final S3ClientOptions getS3ClientOptions;
AmazonS3EncryptionClientParamsWrapper(AwsSyncClientParams getClientParams,
S3ClientOptions getS3ClientOptions,
EncryptionMaterialsProvider encryptionMaterials,
CryptoConfiguration cryptoConfiguration,
AWSKMS kms) {
this.encryptionMaterials = encryptionMaterials;
this.cryptoConfiguration = cryptoConfiguration;
this.kms = kms;
this.getClientParams = getClientParams;
this.getS3ClientOptions = getS3ClientOptions;
}
@Override
EncryptionMaterialsProvider getEncryptionMaterials() {
return encryptionMaterials;
}
@Override
CryptoConfiguration getCryptoConfiguration() {
return cryptoConfiguration;
}
@Override
AWSKMS getKmsClient() {
return kms;
}
@Override
public AwsSyncClientParams getClientParams() {
return getClientParams;
}
@Override
public S3ClientOptions getS3ClientOptions() {
return getS3ClientOptions;
}
}