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 Ks3EncryptionClient.
If EncryptedPutObjectRequest is used against the non-encrypting Ks3Client, the additional
attributes will be ignored.
| 构造器和说明 |
|---|
EncryptedPutObjectRequest(String bucketName,
String key,
File file) |
EncryptedPutObjectRequest(String bucketName,
String key,
InputStream input,
ObjectMetadata metadata) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
addObjectTag, addObjectTag, buildRequest, getAcl, getAdps, getBucket, getCallBackConfiguration, getCannedAcl, getCrc64Ecma, getFile, getInputStream, getKey, getNotifyURL, getObjectMeta, getObjectTagging, getRedirectLocation, getSseCustomerKey, getStorageClass, onFinally, setAcl, setAdps, setBucket, setCallBackConfiguration, setCannedAcl, setCrc64Ecma, setFile, setInputStream, setKey, setNotifyURL, setObjectMeta, setObjectTagging, setRedirectLocation, setSseCustomerKey, setStorageClass, setStorageClass, validateParamsgetRequestConfig, setRequestConfigpublic EncryptedPutObjectRequest(String bucketName, String key, File file)
public EncryptedPutObjectRequest(String bucketName, String key, InputStream input, ObjectMetadata metadata)
public Map<String,String> getMaterialsDescription()
MaterialsDescriptionProviderEncryptionMaterialsAccessorgetMaterialsDescription 在接口中 MaterialsDescriptionProviderpublic void setMaterialsDescription(Map<String,String> materialsDescription)
materialsDescription - the materialsDescription to setpublic EncryptedPutObjectRequest withMaterialsDescription(Map<String,String> materialsDescription)
materialsDescription - the materialsDescription to setCopyright © 2024. All rights reserved.