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

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

keyInfo
KeyInfo

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

toDecrypt
Stream

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

返回

Stream

Stream 对象,包含一个已解密的 <encryptedGrant> 元素。

注解

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

适用于