Class MultipartEncryptedContent
- java.lang.Object
-
- software.amazon.encryption.s3.internal.EncryptedContent
-
- software.amazon.encryption.s3.internal.MultipartEncryptedContent
-
public class MultipartEncryptedContent extends EncryptedContent
-
-
Field Summary
-
Fields inherited from class software.amazon.encryption.s3.internal.EncryptedContent
_iv
-
-
Constructor Summary
Constructors Constructor Description MultipartEncryptedContent(byte[] iv, Cipher cipher, long ciphertextLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description software.amazon.awssdk.core.async.AsyncRequestBody
getAsyncCiphertext()
MultipartEncryptedContent cannot store a ciphertext AsyncRequestBody as it one is generated for each part using the cipher in this class.Cipher
getCipher()
-
Methods inherited from class software.amazon.encryption.s3.internal.EncryptedContent
getCiphertextLength, getIv
-
-
-
-
Constructor Detail
-
MultipartEncryptedContent
public MultipartEncryptedContent(byte[] iv, Cipher cipher, long ciphertextLength)
-
-
Method Detail
-
getAsyncCiphertext
public software.amazon.awssdk.core.async.AsyncRequestBody getAsyncCiphertext()
MultipartEncryptedContent cannot store a ciphertext AsyncRequestBody as it one is generated for each part using the cipher in this class.- Overrides:
getAsyncCiphertext
in classEncryptedContent
- Throws:
UnsupportedOperationException
- always
-
getCipher
public Cipher getCipher()
- Returns:
- the cipher used for the duration of the multipart upload
-
-