Interface MessageCryptoHandler
- All Superinterfaces:
CryptoHandler
- All Known Implementing Classes:
DecryptionHandler
,EncryptionHandler
,LazyMessageCryptoHandler
-
Method Summary
Modifier and TypeMethodDescriptionReturn the encryption context used in the generation of the data key used for the encryption of content.All usedMasterKey
s.void
setMaxInputLength(long size)
Informs this handler of an upper bound on the input data size.Methods inherited from interface com.amazonaws.encryptionsdk.internal.CryptoHandler
doFinal, estimateFinalOutputSize, estimateOutputSize, estimatePartialOutputSize, isComplete, processBytes
-
Method Details
-
setMaxInputLength
void setMaxInputLength(long size)Informs this handler of an upper bound on the input data size. The handler will throw an exception if this bound is exceeded, and may use it to perform performance optimizations as well.If this method is called multiple times, the smallest bound will be used.
- Parameters:
size
- An upper bound on the input data size.
-
getEncryptionContext
Return the encryption context used in the generation of the data key used for the encryption of content.During decryption, this value should be obtained by parsing the ciphertext headers that encodes this value.
- Returns:
- the key-value map containing the encryption context.
-
getHeaders
CiphertextHeaders getHeaders() -
getMasterKeys
-