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

Message Property

The fully encoded or decoded S/MIME message.

Syntax

 smime.getMessage([callback])
 smime.setMessage( message_Buffer, [callback])

Default Value

""


Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for the getMessage([callback]) method is defined as:

function(err, buffer){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'buffer' is the value returned by the method.

The callback for the setMessage([callback]) method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

This property contains the fully encoded or decoded S/MIME message. Messages are encoded and decoded on the same property with the SMIME class

To sign and/or encrypt a text message, first set the this property to the text message you would like to sign and/or encrypt. Then call Sign, Encrypt, 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 you should set this property to the signed and/or encrypted message you would like to verify or decrypt. Then call VerifySignature, Decrypt, DecryptAndVerifySignature, to verify and/or decrypt the message.

This property is not available at design time.

Data Type

Buffer

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