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

定义

解密对象中包含的 <encryptedGrant> XrML Stream 元素。

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

封装 EncryptionMethod 用于 XML 加密的算法的对象。

keyInfo
KeyInfo

包含 KeyInfo 用于解密的非对称密钥的对象。

toDecrypt
Stream

包含要解密的元素的 <encryptedGrant> 流对象。

返回

Stream包含解密<encryptedGrant>元素的对象。

注解

该方法 Decrypt 解密 XrML <encryptedGrant> 元素并返回纯文本流。

适用于