IP*Works! Encrypt V9 - Online Help
IP*Works! Encrypt V9
Questions / Feedback?

SetOutputStream Method

The stream to which the component will write the fully encoded or decoded S/MIME data.

Syntax

[VB.NET]
Public Sub SetOutputStream(ByVal OutputStream As System.IO.Stream)
[C#]
public void SetOutputStream(System.IO.Stream outputStream);

Remarks

This method contains the stream to which the component will write the fully encoded or decoded S/MIME data. If an output stream is set before the component attempts to encode or decode an S/MIME message, the component will write the data to the output stream instead of populating the Message property.

To sign and/or encrypt a message to an output stream, you must first populate the Message property with the data you would like to sign and/or encrypt. Next, this method must be called with a valid output stream for which the component may write the signed or encrypted data. Then call Sign, Encrypt, or SignAndEncrypt to sign and/or encrypt the message. The appropriate MIME headers will be generated in MessageHeaders.

If you would like to decrypt a message or verify it's signature, and write the resulting message to an output stream, you should set the Message property to the signed and/or encrypted message you would like to verify or decrypt. You must next call this method to specify a valid stream for the component to write the data to. Then call VerifySignature, Decrypt, or DecryptAndVerifySignature to verify and/or decrypt the message.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 9.0.6240.0