public class EncryptedPutObjectRequest extends PutObjectRequest implements MaterialsDescriptionProvider, Serializable
This class is an extension of PutObjectRequest
to allow additional
encryption material description to be specified on a per-request basis.In
particular, EncryptedPutObjectRequest
is only recognized by
AmazonS3EncryptionClient
.
If EncryptedPutObjectRequest
is used against the non-encrypting
AmazonS3Client
, the additional attributes will be ignored.
S3DataSource.Utils
NOOP
Constructor and Description |
---|
EncryptedPutObjectRequest(String bucketName,
String key,
File file) |
EncryptedPutObjectRequest(String bucketName,
String key,
InputStream input,
ObjectMetadata metadata) |
EncryptedPutObjectRequest(String bucketName,
String key,
String redirectLocation) |
Modifier and Type | Method and Description |
---|---|
EncryptedPutObjectRequest |
clone()
Returns a clone (as deep as possible) of this request object.
|
Map<String,String> |
getMaterialsDescription()
Returns an unmodifiable view of the MaterialsDescription which the caller
can use to load EncryptionMaterials from any
EncryptionMaterialsAccessor |
void |
setMaterialsDescription(Map<String,String> materialsDescription)
sets the materials description for the encryption materials to be used with the current PutObjectRequest.
|
EncryptedPutObjectRequest |
withMaterialsDescription(Map<String,String> materialsDescription)
sets the materials description for the encryption materials to be used with the current PutObjectRequest.
|
getExpectedBucketOwner, isRequesterPays, setExpectedBucketOwner, setRequesterPays, withAccessControlList, withBucketName, withCannedAcl, withExpectedBucketOwner, withFile, withInputStream, withKey, withMetadata, withProgressListener, withRedirectLocation, withRequesterPays, withSSEAwsKeyManagementParams, withSSECustomerKey, withStorageClass, withStorageClass, withTagging
getAccessControlList, getBucketKeyEnabled, getBucketName, getCannedAcl, getFile, getIfNoneMatch, getInputStream, getKey, getMetadata, getObjectLockLegalHoldStatus, getObjectLockMode, getObjectLockRetainUntilDate, getProgressListener, getRedirectLocation, getSSEAwsKeyManagementParams, getSSECustomerKey, getStorageClass, getTagging, ifNoneMatch, setAccessControlList, setBucketKeyEnabled, setBucketName, setCannedAcl, setFile, setIfNoneMatch, setInputStream, setKey, setMetadata, setObjectLockLegalHoldStatus, setObjectLockLegalHoldStatus, setObjectLockMode, setObjectLockMode, setObjectLockRetainUntilDate, setProgressListener, setRedirectLocation, setSSEAwsKeyManagementParams, setSSECustomerKey, setStorageClass, setStorageClass, setTagging, withBucketKeyEnabled, withObjectLockLegalHoldStatus, withObjectLockLegalHoldStatus, withObjectLockMode, withObjectLockMode, withObjectLockRetainUntilDate
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public EncryptedPutObjectRequest(String bucketName, String key, File file)
public EncryptedPutObjectRequest(String bucketName, String key, String redirectLocation)
public EncryptedPutObjectRequest(String bucketName, String key, InputStream input, ObjectMetadata metadata)
public Map<String,String> getMaterialsDescription()
MaterialsDescriptionProvider
EncryptionMaterialsAccessor
getMaterialsDescription
in interface MaterialsDescriptionProvider
public void setMaterialsDescription(Map<String,String> materialsDescription)
materialsDescription
- the materialsDescription to setpublic EncryptedPutObjectRequest withMaterialsDescription(Map<String,String> materialsDescription)
materialsDescription
- the materialsDescription to setpublic EncryptedPutObjectRequest clone()
clone
in class PutObjectRequest
Object.clone()