Class BufferedAesGcmContentStrategy
- java.lang.Object
-
- software.amazon.encryption.s3.internal.BufferedAesGcmContentStrategy
-
- All Implemented Interfaces:
ContentDecryptionStrategy
public class BufferedAesGcmContentStrategy extends Object implements ContentDecryptionStrategy
This class will decrypt AES-GCM encrypted data by buffering the ciphertext stream into memory. This prevents release of unauthenticated plaintext.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBufferedAesGcmContentStrategy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BufferedAesGcmContentStrategy.Builderbuilder()InputStreamdecryptContent(ContentMetadata contentMetadata, DecryptionMaterials materials, InputStream ciphertextStream)
-
-
-
Method Detail
-
builder
public static BufferedAesGcmContentStrategy.Builder builder()
-
decryptContent
public InputStream decryptContent(ContentMetadata contentMetadata, DecryptionMaterials materials, InputStream ciphertextStream)
- Specified by:
decryptContentin interfaceContentDecryptionStrategy
-
-