public abstract class S3CryptoModule<T extends MultipartUploadContext> extends Object
Constructor and Description |
---|
S3CryptoModule() |
Modifier and Type | Method and Description |
---|---|
abstract void |
abortMultipartUploadSecurely(AbortMultipartUploadRequest req) |
abstract CompleteMultipartUploadResult |
completeMultipartUploadSecurely(CompleteMultipartUploadRequest req) |
abstract CopyPartResult |
copyPartSecurely(CopyPartRequest req) |
abstract S3Object |
getObjectSecurely(GetObjectRequest req) |
abstract ObjectMetadata |
getObjectSecurely(GetObjectRequest req,
File dest) |
abstract InitiateMultipartUploadResult |
initiateMultipartUploadSecurely(InitiateMultipartUploadRequest req) |
abstract PutObjectResult |
putInstructionFileSecurely(PutInstructionFileRequest req) |
abstract void |
putLocalObjectSecurely(UploadObjectRequest req,
String uploadId,
OutputStream os) |
abstract PutObjectResult |
putObjectSecurely(PutObjectRequest req) |
abstract UploadPartResult |
uploadPartSecurely(UploadPartRequest req) |
public abstract PutObjectResult putObjectSecurely(PutObjectRequest req)
public abstract S3Object getObjectSecurely(GetObjectRequest req)
public abstract ObjectMetadata getObjectSecurely(GetObjectRequest req, File dest)
public abstract CompleteMultipartUploadResult completeMultipartUploadSecurely(CompleteMultipartUploadRequest req)
public abstract InitiateMultipartUploadResult initiateMultipartUploadSecurely(InitiateMultipartUploadRequest req)
public abstract UploadPartResult uploadPartSecurely(UploadPartRequest req)
public abstract CopyPartResult copyPartSecurely(CopyPartRequest req)
public abstract void abortMultipartUploadSecurely(AbortMultipartUploadRequest req)
public abstract PutObjectResult putInstructionFileSecurely(PutInstructionFileRequest req)
EncryptedGetObjectRequest
.IllegalArgumentException
- if the specified S3 object doesn't exist.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, String uploadId, OutputStream os) throws IOException
uploadId
- multipart upload idos
- output stream which will be closed upon method completion.IOException
Copyright © 2022. All rights reserved.