T
- the class type.AmazonS3EncryptionClient
for further details.@Deprecated
public abstract class S3CryptoModule<T extends MultipartUploadContext>
extends java.lang.Object
Constructor and Description |
---|
S3CryptoModule()
Deprecated.
|
public abstract PutObjectResult putObjectSecurely(PutObjectRequest req)
req
- the PutObjectRequest.public abstract S3Object getObjectSecurely(GetObjectRequest req)
req
- the GetObjectRequest.public abstract ObjectMetadata getObjectSecurely(GetObjectRequest req, java.io.File dest)
req
- the GetObjectRequest.dest
- the destination file.public abstract CompleteMultipartUploadResult completeMultipartUploadSecurely(CompleteMultipartUploadRequest req)
req
- the CompleteMultipartUploadRequest.public abstract InitiateMultipartUploadResult initiateMultipartUploadSecurely(InitiateMultipartUploadRequest req)
req
- the InitiateMultipartUploadRequest.public abstract UploadPartResult uploadPartSecurely(UploadPartRequest req)
req
- the UploadPartRequest.public abstract CopyPartResult copyPartSecurely(CopyPartRequest req)
req
- the CopyPartRequest.public abstract void abortMultipartUploadSecurely(AbortMultipartUploadRequest req)
req
- the AbortMultipartUploadRequest.public abstract PutObjectResult putInstructionFileSecurely(PutInstructionFileRequest req)
req
- the PutInstructionFileRequest.EncryptedGetObjectRequest
.java.lang.IllegalArgumentException
- if the specified S3 object doesn't exist.java.lang.SecurityException
- if the protection level of the material in the new
instruction file is lower than that of the original.
Currently, this means if the original material has been
secured via authenticated encryption, then the new
instruction file cannot be created via an S3 encryption
client configured with CryptoMode.EncryptionOnly
.public abstract void putLocalObjectSecurely(UploadObjectRequest req, java.lang.String uploadId, java.io.OutputStream os) throws java.io.IOException
req
- the UploadObjectRequest.uploadId
- multipart upload id.os
- output stream which will be closed upon method completion.java.io.IOException