public class EncryptedPutObjectRequest extends PutObjectRequest implements MaterialsDescriptionProvider, java.io.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
AmazonS3EncryptionJavaClient
.
If EncryptedPutObjectRequest
is used against the non-encrypting
AmazonS3EncryptionClient
, the additional attributes will be ignored.
S3DataSource.Utils
Constructor and Description |
---|
EncryptedPutObjectRequest(java.lang.String bucketName,
java.lang.String key,
java.io.File file) |
EncryptedPutObjectRequest(java.lang.String bucketName,
java.lang.String key,
java.io.InputStream input,
ObjectMetadata metadata) |
EncryptedPutObjectRequest(java.lang.String bucketName,
java.lang.String key,
java.lang.String redirectLocation) |
Modifier and Type | Method and Description |
---|---|
EncryptedPutObjectRequest |
clone()
Returns a clone (as deep as possible) of this request object.
|
java.util.Map<java.lang.String,java.lang.String> |
getMaterialsDescription()
Returns an unmodifiable view of the MaterialsDescription which the caller
can use to load EncryptionMaterials from any
EncryptionMaterialsAccessor |
void |
setMaterialsDescription(java.util.Map<java.lang.String,java.lang.String> materialsDescription)
sets the materials description for the encryption materials to be used
with the current PutObjectRequest.
|
EncryptedPutObjectRequest |
withMaterialsDescription(java.util.Map<java.lang.String,java.lang.String> materialsDescription)
sets the materials description for the encryption materials to be used
with the current PutObjectRequest.
|
isRequesterPays, setRequesterPays, withAccessControlList, withBucketName, withCannedAcl, withFile, withGeneralProgressListener, withInputStream, withKey, withMetadata, withProgressListener, withRedirectLocation, withRequesterPays, withSSEAwsKeyManagementParams, withSSECustomerKey, withStorageClass, withStorageClass, withTagging
getAccessControlList, getBucketName, getCannedAcl, getFile, getInputStream, getKey, getMetadata, getProgressListener, getRedirectLocation, getSSEAwsKeyManagementParams, getSSECustomerKey, getStorageClass, getTagging, setAccessControlList, setBucketName, setCannedAcl, setFile, setInputStream, setKey, setMetadata, setProgressListener, setRedirectLocation, setSSEAwsKeyManagementParams, setSSECustomerKey, setStorageClass, setStorageClass, setTagging
getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public EncryptedPutObjectRequest(java.lang.String bucketName, java.lang.String key, java.io.File file)
public EncryptedPutObjectRequest(java.lang.String bucketName, java.lang.String key, java.lang.String redirectLocation)
public EncryptedPutObjectRequest(java.lang.String bucketName, java.lang.String key, java.io.InputStream input, ObjectMetadata metadata)
public java.util.Map<java.lang.String,java.lang.String> getMaterialsDescription()
MaterialsDescriptionProvider
EncryptionMaterialsAccessor
getMaterialsDescription
in interface MaterialsDescriptionProvider
public void setMaterialsDescription(java.util.Map<java.lang.String,java.lang.String> materialsDescription)
materialsDescription
- the materialsDescription to setpublic EncryptedPutObjectRequest withMaterialsDescription(java.util.Map<java.lang.String,java.lang.String> materialsDescription)
materialsDescription
- the materialsDescription to setpublic EncryptedPutObjectRequest clone()
clone
in class PutObjectRequest
Object.clone()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.