EncryptedXml.GetDecryptionKey(EncryptedData, String) Metoda

Definice

Načte dešifrovací klíč ze zadaného EncryptedData objektu.

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, string symmetricAlgorithmUri);
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

Parametry

encryptedData
EncryptedData

Objekt EncryptedData , který obsahuje dešifrovací klíč k načtení.

symmetricAlgorithmUri
String

Velikost dešifrovacího klíče, který se má načíst.

Návraty

SymmetricAlgorithm Objekt přidružený k dešifrovacímu klíči.

Výjimky

Hodnota parametru encryptedData je null.

Parametr encryptedData má EncryptionMethod vlastnost, která má hodnotu null.

nebo

Šifrovaný klíč nelze načíst pomocí zadaných parametrů.

Poznámky

Vzhledem k objektu EncryptedData tato metoda hledá dešifrovací klíč, který lze použít k načtení dat ve formátu prostého textu. Pokud je zadán název klíče, metoda hledá symetrický algoritmus nebo asymetrický algoritmus, který je přidružený k názvu klíče, jak je definováno v mapování názvu klíče. V opačném případě, pokud je zadána metoda načtení nebo EncryptedKey objekt, metoda načte EncryptedKey objekt a volá metodu GetDecryptionKey .

Platí pro