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
algorithm
AsymmetricAlgorithmGeneric asymmetric algorithm
algorithmType
AsymmetricAlgorithmTypeType of of the asymmetric algorithm
EncryptionMaterialsV2(SymmetricAlgorithm, SymmetricAlgorithmType)
Constructs a new EncryptionMaterials object, storing a symmetric key.
public EncryptionMaterialsV2(SymmetricAlgorithm algorithm, SymmetricAlgorithmType algorithmType)
Parameters
algorithm
SymmetricAlgorithmGeneric symmetric algorithm
algorithmType
SymmetricAlgorithmTypeType 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
kmsKeyId
stringGeneric KMS Id
kmsType
KmsTypeType of the KMS Id
materialsDescription
Dictionary<string, string>