Class EncryptionMaterialsV2
- Namespace
- Amazon.Extensions.S3.Encryption
- Assembly
- Amazon.Extensions.S3.Encryption.dll
The "key encrypting key" materials used in encrypt/decryption. 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 EncryptionMaterialsV2 : EncryptionMaterialsBase
- Inheritance
-
EncryptionMaterialsV2
Constructors
EncryptionMaterialsV2(AsymmetricAlgorithm, AsymmetricAlgorithmType)
Constructs a new EncryptionMaterials object, storing an asymmetric key.
public EncryptionMaterialsV2(AsymmetricAlgorithm algorithm, AsymmetricAlgorithmType algorithmType)
Parameters
algorithmAsymmetricAlgorithmGeneric asymmetric algorithm
algorithmTypeAsymmetricAlgorithmTypeType of of the asymmetric algorithm
EncryptionMaterialsV2(SymmetricAlgorithm, SymmetricAlgorithmType)
Constructs a new EncryptionMaterials object, storing a symmetric key.
public EncryptionMaterialsV2(SymmetricAlgorithm algorithm, SymmetricAlgorithmType algorithmType)
Parameters
algorithmSymmetricAlgorithmGeneric symmetric algorithm
algorithmTypeSymmetricAlgorithmTypeType of the symmetric algorithm
EncryptionMaterialsV2(string, KmsType, Dictionary<string, string>)
Constructs a new EncryptionMaterials object, storing a KMS Key ID
public EncryptionMaterialsV2(string kmsKeyId, KmsType kmsType, Dictionary<string, string> materialsDescription)
Parameters
kmsKeyIdstringGeneric KMS Id
kmsTypeKmsTypeType of the KMS Id
materialsDescriptionDictionary<string, string>