Partage via


EncryptedXml.GetDecryptionKey(EncryptedData, String) Méthode

Définition

Récupère la clé de déchiffrement de l'objet EncryptedData spécifié.

public:
 virtual System::Security::Cryptography::SymmetricAlgorithm ^ GetDecryptionKey(System::Security::Cryptography::Xml::EncryptedData ^ encryptedData, System::String ^ symmetricAlgorithmUri);
public:
 virtual System::Security::Cryptography::SymmetricAlgorithm ^ GetDecryptionKey(System::Security::Cryptography::Xml::EncryptedData ^ encryptedData, System::String ^ symAlgUri);
public virtual System.Security.Cryptography.SymmetricAlgorithm GetDecryptionKey (System.Security.Cryptography.Xml.EncryptedData encryptedData, string symmetricAlgorithmUri);
public virtual System.Security.Cryptography.SymmetricAlgorithm GetDecryptionKey (System.Security.Cryptography.Xml.EncryptedData encryptedData, string symAlgUri);
abstract member GetDecryptionKey : System.Security.Cryptography.Xml.EncryptedData * string -> System.Security.Cryptography.SymmetricAlgorithm
override this.GetDecryptionKey : System.Security.Cryptography.Xml.EncryptedData * string -> System.Security.Cryptography.SymmetricAlgorithm
abstract member GetDecryptionKey : System.Security.Cryptography.Xml.EncryptedData * string -> System.Security.Cryptography.SymmetricAlgorithm
override this.GetDecryptionKey : System.Security.Cryptography.Xml.EncryptedData * string -> System.Security.Cryptography.SymmetricAlgorithm
Public Overridable Function GetDecryptionKey (encryptedData As EncryptedData, symmetricAlgorithmUri As String) As SymmetricAlgorithm
Public Overridable Function GetDecryptionKey (encryptedData As EncryptedData, symAlgUri As String) As SymmetricAlgorithm

Paramètres

encryptedData
EncryptedData

Objet EncryptedData qui contient la clé de déchiffrement à récupérer.

symmetricAlgorithmUrisymAlgUri
String

Taille de la clé de déchiffrement à récupérer.

Retours

SymmetricAlgorithm

Objet SymmetricAlgorithm associé à la clé de déchiffrement.

Exceptions

La valeur du paramètre encryptedData est null.

Le paramètre encryptedData a une propriété EncryptionMethod qui est null.

  • ou - La clé chiffrée ne peut pas être récupérée à l'aide des paramètres spécifiés.

Remarques

Étant donné un EncryptedData objet, cette méthode recherche la clé de déchiffrement qui peut être utilisée pour récupérer les données de texte brut. Si un nom de clé est spécifié, la méthode recherche l’algorithme symétrique ou l’algorithme asymétrique associé au nom de clé tel que défini dans le mappage de nom de clé. Sinon, si une méthode de récupération ou un EncryptedKey objet est spécifié, la méthode charge l’objet EncryptedKey et appelle la GetDecryptionKey méthode.

S’applique à