public class EncryptedGetObjectRequest extends GetObjectRequest implements Serializable
An extension of GetObjectRequest to allow additional encryption material description to
be specified on a per-request basis. In particular, EncryptedGetObjectRequest is only
recognized by COSEncryptionClient.
If EncryptedGetObjectRequest is used against the non-encrypting
COSEncryptionClient, the additional attributes will be ignored.
The additional material description must not conflict with the existing one saved in COS or else will cause the get request to fail fast later on.
| 构造器和说明 |
|---|
EncryptedGetObjectRequest(COSObjectId cosObjectId) |
EncryptedGetObjectRequest(String bucketName,
String key) |
EncryptedGetObjectRequest(String bucketName,
String key,
String versionId) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getInstructionFileSuffix() |
boolean |
isKeyWrapExpected()
Returns true if key wrapping is expected; false otherwise.
|
void |
setInstructionFileSuffix(String instructionFileSuffix)
Explicitly sets the suffix of an instruction file to be used to retrieve the COS encrypted
object.
|
void |
setKeyWrapExpected(boolean keyWrapExpected) |
EncryptedGetObjectRequest |
withInstructionFileSuffix(String instructionFileSuffix)
Fluent API to explicitly sets the suffix of an instruction file to be used to retrieve the COS
encrypted object.
|
EncryptedGetObjectRequest |
withKeyWrapExpected(boolean keyWrapExpected)
Fluent API for
setKeyWrapExpected(boolean). |
getBucketName, getCOSObjectId, getKey, getMatchingETagConstraints, getModifiedSinceConstraint, getNonmatchingETagConstraints, getRange, getResponseHeaders, getSSECustomerKey, getTrafficLimit, getUnmodifiedSinceConstraint, getVersionId, setBucketName, setKey, setMatchingETagConstraints, setModifiedSinceConstraint, setNonmatchingETagConstraints, setRange, setResponseHeaders, setSSECustomerKey, setTrafficLimit, setUnmodifiedSinceConstraint, setVersionId, withBucketName, withKey, withMatchingETagConstraint, withModifiedSinceConstraint, withNonmatchingETagConstraint, withRange, withResponseHeaders, withSSECustomerKey, withUnmodifiedSinceConstraint, withVersionIdclone, copyBaseTo, getCloneRoot, getCloneSource, getCosCredentials, getCustomQueryParameters, getCustomRequestHeaders, getFixedEndpointAddr, getGeneralProgressListener, getReadLimit, getRequestClientOptions, putCustomQueryParameter, putCustomRequestHeader, setCosCredentials, setFixedEndpointAddr, setGeneralProgressListener, withGeneralProgressListenerpublic EncryptedGetObjectRequest(String bucketName, String key, String versionId)
public EncryptedGetObjectRequest(COSObjectId cosObjectId)
public String getInstructionFileSuffix()
public void setInstructionFileSuffix(String instructionFileSuffix)
instructionFileSuffix - suffix of the instruction file to be used.COSEncryptionClient#putInstructionFile(PutInstructionFileRequest)public EncryptedGetObjectRequest withInstructionFileSuffix(String instructionFileSuffix)
instructionFileSuffix - suffix of the instruction file to be used.COSEncryptionClient#putInstructionFile(PutInstructionFileRequest)public boolean isKeyWrapExpected()
CryptoMode#StrictAuthenticatedEncryption or KMS is in use, key wrapping is always
expected for the CEK regardless.public void setKeyWrapExpected(boolean keyWrapExpected)
keyWrapExpected - true if key wrapping is expected for the CEK; false otherwse. Note,
however, that if CryptoMode#StrictAuthenticatedEncryption or KMS is in use,
key wrapping is always expected for the CEK regardless.
If keyWrapExpected is set to true but the CEK is found to be not key-wrapped, it would
cause a KeyWrapException to be thrown.
public EncryptedGetObjectRequest withKeyWrapExpected(boolean keyWrapExpected)
setKeyWrapExpected(boolean).Copyright © 2021. All rights reserved.