共用方式為


IRelDecryptor.Decrypt(EncryptionMethod, KeyInfo, Stream) 方法

定義

Stream 物件內所含的 XrML <encryptedGrant> 項目解密。

public:
 System::IO::Stream ^ Decrypt(System::Security::Cryptography::Xml::EncryptionMethod ^ encryptionMethod, System::Security::Cryptography::Xml::KeyInfo ^ keyInfo, System::IO::Stream ^ toDecrypt);
public System.IO.Stream Decrypt (System.Security.Cryptography.Xml.EncryptionMethod encryptionMethod, System.Security.Cryptography.Xml.KeyInfo keyInfo, System.IO.Stream toDecrypt);
abstract member Decrypt : System.Security.Cryptography.Xml.EncryptionMethod * System.Security.Cryptography.Xml.KeyInfo * System.IO.Stream -> System.IO.Stream
Public Function Decrypt (encryptionMethod As EncryptionMethod, keyInfo As KeyInfo, toDecrypt As Stream) As Stream

參數

encryptionMethod
EncryptionMethod

封裝了 XML 加密 (Encryption) 所使用的演算法之 EncryptionMethod 物件。

keyInfo
KeyInfo

含有解密所需之非對稱金鑰的 KeyInfo 物件。

toDecrypt
Stream

含有欲解密之 <encryptedGrant> 項目的資料流物件。

傳回

Stream

含有已解密之 <encryptedGrant> 項目的 Stream 物件。

備註

方法 Decrypt 會解密 XrML <encryptedGrant> 專案,並傳回純文字資料流程。

適用於