public class COSCryptoModuleAE extends COSCryptoModuleBase
contentCryptoScheme, cos, cryptoConfig, cryptoScheme, DEFAULT_BUFFER_SIZE, kekMaterialsProvider, kms, log, multipartUploadContexts| Constructor and Description |
|---|
COSCryptoModuleAE(COSDirect cos,
COSCredentialsProvider credentialsProvider,
EncryptionMaterialsProvider kekMaterialsProvider,
CryptoConfiguration cryptoConfig) |
COSCryptoModuleAE(QCLOUDKMS kms,
COSDirect cos,
COSCredentialsProvider credentialsProvider,
EncryptionMaterialsProvider kekMaterialsProvider,
CryptoConfiguration cryptoConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected COSObjectWrapper |
adjustToDesiredRange(COSObjectWrapper cosObject,
long[] range,
Map<String,String> instruction)
Adjusts the retrieved COSObject so that the object contents contain only the range of bytes
desired by the user.
|
protected long |
ciphertextLength(long originalContentLength)
Returns the length of the ciphertext computed from the length of the plaintext.
|
COSObject |
getObjectSecurely(GetObjectRequest req) |
ObjectMetadata |
getObjectSecurely(GetObjectRequest getObjectRequest,
File destinationFile) |
protected boolean |
isStrict()
Returns true if a strict encryption mode is in use in the current crypto module; false
otherwise.
|
abortMultipartUploadSecurely, completeMultipartUploadSecurely, copyPartSecurely, createContentCryptoMaterial, createInstructionPutRequest, generateCEK, getCOSCryptoScheme, initiateMultipartUploadSecurely, newMultipartCOSCipherInputStream, plaintextLength, putInstructionFileSecurely, putObjectSecurely, securityCheck, updateInstructionPutRequest, updateMetadataWithContentCryptoMaterial, uploadPartSecurely, wrapWithCipherpublic COSCryptoModuleAE(COSDirect cos, COSCredentialsProvider credentialsProvider, EncryptionMaterialsProvider kekMaterialsProvider, CryptoConfiguration cryptoConfig)
public COSCryptoModuleAE(QCLOUDKMS kms, COSDirect cos, COSCredentialsProvider credentialsProvider, EncryptionMaterialsProvider kekMaterialsProvider, CryptoConfiguration cryptoConfig)
protected boolean isStrict()
public COSObject getObjectSecurely(GetObjectRequest req)
getObjectSecurely in class COSCryptoModuleprotected final COSObjectWrapper adjustToDesiredRange(COSObjectWrapper cosObject, long[] range, Map<String,String> instruction)
cosObject - The COSObject retrieved from COS that could possibly contain more bytes than
desired by the user.range - A two-element array of longs corresponding to the start and finish (inclusive)
of a desired range of bytes.instruction - Instruction file in JSON or null if no instruction file is involvedpublic ObjectMetadata getObjectSecurely(GetObjectRequest getObjectRequest, File destinationFile)
getObjectSecurely in class COSCryptoModuleprotected long ciphertextLength(long originalContentLength)
COSCryptoModuleBaseciphertextLength in class COSCryptoModuleBaseoriginalContentLength - a non-negative numberCopyright © 2023. All rights reserved.