Class EncryptionMaterialsV4
- Namespace
- Amazon.Extensions.S3.Encryption
- Assembly
- Amazon.Extensions.S3.Encryption.dll
The "key encrypting key" materials used in V4 encrypt/decryption with key commitment support. These materials may be an asymmetric key, a symmetric key, or a KMS key ID. Every material has its unique type such as RsaOaepSha1, AesGcm or KmsContext respectively.
public class EncryptionMaterialsV4 : EncryptionMaterialsBase
- Inheritance
-
EncryptionMaterialsV4
Constructors
EncryptionMaterialsV4(AsymmetricAlgorithm, AsymmetricAlgorithmType)
Constructs a new EncryptionMaterialsV4 object, storing an asymmetric key.
public EncryptionMaterialsV4(AsymmetricAlgorithm algorithm, AsymmetricAlgorithmType algorithmType)
Parameters
algorithmAsymmetricAlgorithmGeneric asymmetric algorithm
algorithmTypeAsymmetricAlgorithmTypeType of the asymmetric algorithm
EncryptionMaterialsV4(SymmetricAlgorithm, SymmetricAlgorithmType)
Constructs a new EncryptionMaterialsV4 object, storing a symmetric key.
public EncryptionMaterialsV4(SymmetricAlgorithm algorithm, SymmetricAlgorithmType algorithmType)
Parameters
algorithmSymmetricAlgorithmGeneric symmetric algorithm
algorithmTypeSymmetricAlgorithmTypeType of the symmetric algorithm
EncryptionMaterialsV4(string, KmsType)
Constructs a new EncryptionMaterialsV4 object, storing a KMS Key ID
public EncryptionMaterialsV4(string kmsKeyId, KmsType kmsType)
Parameters
EncryptionMaterialsV4(string, KmsType, Dictionary<string, string>)
Constructs a new EncryptionMaterialsV4 object, storing a KMS Key ID
public EncryptionMaterialsV4(string kmsKeyId, KmsType kmsType, Dictionary<string, string> encryptionContext)
Parameters
kmsKeyIdstringGeneric KMS Id
kmsTypeKmsTypeType of the KMS Id
encryptionContextDictionary<string, string>Encryption context that will be sent to AWS KMS