public class CryptoModuleAE extends CryptoModuleBase
contentCryptoScheme, cos, cryptoScheme, DEFAULT_BUFFER_SIZE, kekMaterialsProvider, kms, multipartUploadContexts
构造器和说明 |
---|
CryptoModuleAE(CosXmlSimpleService cos,
QCloudCredentialProvider credentialsProvider,
EncryptionMaterialsProvider kekMaterialsProvider) |
CryptoModuleAE(QCLOUDKMS kms,
CosXmlSimpleService cos,
QCloudCredentialProvider credentialsProvider,
EncryptionMaterialsProvider kekMaterialsProvider) |
限定符和类型 | 方法和说明 |
---|---|
protected long |
ciphertextLength(long originalContentLength)
Returns the length of the ciphertext computed from the length of the plaintext.
|
GetObjectResult |
getObjectSecurely(GetObjectRequest req) |
protected boolean |
isStrict()
Returns true if a strict encryption mode is in use in the current crypto module; false
otherwise.
|
cipherInitMultipartUploadRequest, completeMultipartUploadSecurely, createContentCryptoMaterial, generateCEK, getCOSCryptoScheme, getCryptoContext, hasMultipartUploadContext, initMultipartUploadSecurely, newCOSCipherLiteInputStream, newMultipartCOSCipherInputStream, plaintextLength, putObjectSecurely, updateMetadataWithContentCryptoMaterial, uploadPartAsyncSecurely, uploadPartSecurely, wrapWithCipher
public CryptoModuleAE(CosXmlSimpleService cos, QCloudCredentialProvider credentialsProvider, EncryptionMaterialsProvider kekMaterialsProvider)
public CryptoModuleAE(QCLOUDKMS kms, CosXmlSimpleService cos, QCloudCredentialProvider credentialsProvider, EncryptionMaterialsProvider kekMaterialsProvider)
protected boolean isStrict()
public GetObjectResult getObjectSecurely(GetObjectRequest req) throws CosXmlClientException, CosXmlServiceException
protected final long ciphertextLength(long originalContentLength)
CryptoModuleBase
ciphertextLength
在类中 CryptoModuleBase
originalContentLength
- a non-negative number