public abstract class S3CryptoModule<T extends MultipartUploadContext> extends Object
Constructor and Description |
---|
S3CryptoModule() |
public abstract CryptoConfigurationV2 getCryptoConfiguration()
public abstract EncryptionMaterialsProvider getEncryptionMaterialsProvider()
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 © 2023. All rights reserved.