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
AmazonS3EncryptionClient
.
If EncryptedGetObjectRequest
is used against the non-encrypting
AmazonS3Client
, the additional attributes will be ignored.
The additional material description must not conflict with the existing one saved in S3 or else will cause the get request to fail fast later on.
NOOP
Constructor and Description |
---|
EncryptedGetObjectRequest(S3ObjectId s3ObjectId) |
EncryptedGetObjectRequest(String bucketName,
String key) |
EncryptedGetObjectRequest(String bucketName,
String key,
boolean isRequesterPays) |
EncryptedGetObjectRequest(String bucketName,
String key,
String versionId) |
Modifier and Type | Method and Description |
---|---|
ExtraMaterialsDescription |
getExtraMaterialDescription()
Returns the supplemental material description to be used for retrieving
the encryption materials.
|
String |
getInstructionFileSuffix() |
boolean |
isKeyWrapExpected()
Returns true if key wrapping is expected; false otherwise.
|
void |
setExtraMaterialDescription(ExtraMaterialsDescription supplemental)
Sets the supplemental materials description for the encryption materials
to be used with the current request.
|
void |
setInstructionFileSuffix(String instructionFileSuffix)
Explicitly sets the suffix of an instruction file to be used to retrieve
the S3 encrypted object.
|
void |
setKeyWrapExpected(boolean keyWrapExpected) |
EncryptedGetObjectRequest |
withExtraMaterialsDescription(ExtraMaterialsDescription supplemental)
Sets the supplemental materials description for the encryption materials
to be used with the current request.
|
EncryptedGetObjectRequest |
withExtraMaterialsDescription(Map<String,String> supplemental)
Fluent API to set the supplemental materials description for the
encryption materials to be used with the current request.
|
EncryptedGetObjectRequest |
withInstructionFileSuffix(String instructionFileSuffix)
Fluent API to explicitly sets the suffix of an instruction file to be
used to retrieve the S3 encrypted object.
|
EncryptedGetObjectRequest |
withKeyWrapExpected(boolean keyWrapExpected)
Fluent API for
setKeyWrapExpected(boolean) . |
getBucketName, getKey, getMatchingETagConstraints, getModifiedSinceConstraint, getNonmatchingETagConstraints, getPartNumber, getProgressListener, getRange, getResponseHeaders, getS3ObjectId, getSSECustomerKey, getUnmodifiedSinceConstraint, getVersionId, isRequesterPays, setBucketName, setKey, setMatchingETagConstraints, setModifiedSinceConstraint, setNonmatchingETagConstraints, setPartNumber, setProgressListener, setRange, setRange, setRequesterPays, setResponseHeaders, setS3ObjectId, setSSECustomerKey, setUnmodifiedSinceConstraint, setVersionId, withBucketName, withKey, withMatchingETagConstraint, withModifiedSinceConstraint, withNonmatchingETagConstraint, withPartNumber, withProgressListener, withRange, withRange, withRequesterPays, withResponseHeaders, withS3ObjectId, withSSECustomerKey, withUnmodifiedSinceConstraint, withVersionId
addHandlerContext, clone, 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 EncryptedGetObjectRequest(String bucketName, String key, String versionId)
public EncryptedGetObjectRequest(S3ObjectId s3ObjectId)
public ExtraMaterialsDescription getExtraMaterialDescription()
public void setExtraMaterialDescription(ExtraMaterialsDescription supplemental)
supplemental
- the materialsDescription to set; must not conflict with the
existing one saved in S3 or else will cause the get request to
fail fast later onpublic EncryptedGetObjectRequest withExtraMaterialsDescription(ExtraMaterialsDescription supplemental)
supplemental
- the materialsDescription to set; must not conflict with the
existing one saved in S3 or else will cause the get request to
fail fast later onpublic EncryptedGetObjectRequest withExtraMaterialsDescription(Map<String,String> supplemental)
supplemental
- the materialsDescription to set; must not conflict with the
existing one saved in S3 or else will cause the get request to
fail fast later onpublic String getInstructionFileSuffix()
public void setInstructionFileSuffix(String instructionFileSuffix)
instructionFileSuffix
- suffix of the instruction file to be used.AmazonS3EncryptionClient.putInstructionFile(PutInstructionFileRequest)
public EncryptedGetObjectRequest withInstructionFileSuffix(String instructionFileSuffix)
instructionFileSuffix
- suffix of the instruction file to be used.AmazonS3EncryptionClient.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 © 2013 Amazon Web Services, Inc. All Rights Reserved.