Class CipherProvider
- java.lang.Object
-
- software.amazon.encryption.s3.internal.CipherProvider
-
public class CipherProvider extends Object
Composes a CMM to provide S3 specific functionality
-
-
Constructor Summary
Constructors Constructor Description CipherProvider(CryptographicMaterialsManager cmm)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Cipher
createAndInitCipher(CryptographicMaterials materials, byte[] iv)
Given some materials and an IV, create and init a Cipher object.
-
-
-
Constructor Detail
-
CipherProvider
public CipherProvider(CryptographicMaterialsManager cmm)
-
-
Method Detail
-
createAndInitCipher
public static Cipher createAndInitCipher(CryptographicMaterials materials, byte[] iv)
Given some materials and an IV, create and init a Cipher object.- Parameters:
materials
- the materials which dictate e.g. algorithm suiteiv
- the IV, it MUST be initialized before use- Returns:
- a Cipher object, initialized and ready to use
-
-