public class EncryptedPutObjectRequest extends PutObjectRequest implements MaterialsDescriptionProvider
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 AmazonS3JavaClient
, the additional
attributes will be ignored.
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 |
---|---|
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.
|
clone, getAccessControlList, getBucketName, getCannedAcl, getFile, getGeneralProgressListener, getInputStream, getKey, getMetadata, getProgressListener, getRedirectLocation, getSSECustomerKey, getStorageClass, setAccessControlList, setBucketName, setCannedAcl, setFile, setGeneralProgressListener, setInputStream, setKey, setMetadata, setProgressListener, setRedirectLocation, setSSECustomerKey, setStorageClass, setStorageClass, withAccessControlList, withBucketName, withCannedAcl, withFile, withGeneralProgressListener, withInputStream, withKey, withMetadata, withProgressListener, withRedirectLocation, withSSECustomerKey, withStorageClass, withStorageClass
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
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 setCopyright © 2010 Amazon Web Services, Inc. All Rights Reserved.