IRelDecryptor.Decrypt(EncryptionMethod, KeyInfo, Stream) IRelDecryptor.Decrypt(EncryptionMethod, KeyInfo, Stream) IRelDecryptor.Decrypt(EncryptionMethod, KeyInfo, Stream) Method

Definition

Decrypts an XrML <encryptedGrant> element that is contained within a Stream object.

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

Parameters

encryptionMethod
EncryptionMethod EncryptionMethod EncryptionMethod

An EncryptionMethod object that encapsulates the algorithm used for XML encryption.

keyInfo
KeyInfo KeyInfo KeyInfo

A KeyInfo object that contains an asymmetric key to use for decryption.

toDecrypt
Stream Stream Stream

A stream object that contains an <encryptedGrant> element to decrypt.

Returns

A Stream object that contains a decrypted <encryptedGrant> element.

Remarks

The Decrypt method decrypts an XrML <encryptedGrant> element and returns a plaintext stream.

Applies to