EncryptedXml.GetDecryptionKey(EncryptedData, String) Metoda

Definicja

Pobiera klucz odszyfrowywania z określonego EncryptedData obiektu.

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

Parametry

encryptedData
EncryptedData

EncryptedData Obiekt zawierający klucz odszyfrowywania do pobrania.

symmetricAlgorithmUrisymAlgUri
String

Rozmiar klucza odszyfrowywania do pobrania.

Zwraca

SymmetricAlgorithm

SymmetricAlgorithm Obiekt skojarzony z kluczem odszyfrowywania.

Wyjątki

Wartość parametru encryptedData to null.

Parametr encryptedData ma EncryptionMethod właściwość o wartości null.

-lub- Nie można pobrać zaszyfrowanego klucza przy użyciu określonych parametrów.

Uwagi

EncryptedData Biorąc pod uwagę obiekt, ta metoda wyszukuje klucz odszyfrowywania, który może służyć do pobierania danych zwykłego tekstu. Jeśli określono nazwę klucza, metoda szuka algorytmu symetrycznego lub algorytmu asymetrycznego skojarzonego z nazwą klucza zgodnie z definicją w mapowaniu nazwy klucza. W przeciwnym razie, jeśli zostanie określona metoda pobierania lub EncryptedKey obiekt, metoda ładuje EncryptedKey obiekt i wywołuje metodę GetDecryptionKey .

Dotyczy