RDOEncryptedMessage object |
RDOEncryptedMessage wraps encrypted and signed messages and provides access to the decrypted message contents as well as the encryption specific properties and methods.
Returned by:
RDOSession.GetMessageFromID
RDOStore.GetMessageFromID
RDOSession.GetMessageFromMsgFile
RDOItems.Add, GetFirst, GetLast, GetNext, GetPrevious, Item
The example below open an encrypted MSG file and displays the decrypted message body.
|
set Session = CreateObject("Redemption.RDOSession") MsgBox DecryptedMsg.Body |
Derived from: RDOMail |
||
|
|
||
Properties |
||
|
|
||
| CertificateAlgorithmOID |
String, read-only. Returns encryption algorithm identifier. See http://msdn.microsoft.com/en-us/library/aa923698.aspx for more details. |
|
| CertificateNotAfter |
DateTime, read-only. Returns the date and time after which the certificate is not valid. |
|
| CertificateNotBefore |
DateTime, read-only. Returns the date and time before which the certificate is not valid. |
|
| EncryptionKind |
rdoEncryptionKind, read-only. Returns one of the rdoEncryptionKind enums: ecUnknown = -1; ecClearSigned = 0 ecOpaqueSignedOrEncrypted = 1 |
|
| SignatureValid |
Boolean, read-only. Returns TRUE if the message certificate is valid. If the message cannot be decrypted or the signature is invalid, returns false. |
|
| SignedByEmail |
String, read-only. Returns the e-mail address of the person who signed the message. |
set Session = CreateObject("Redemption.RDOSession") MsgBox DecryptedMsg.SignedByEmail
|
| SignedByName |
String, read-only. Returns the name or e-mail address of the person who signed the message. |
|
| SignedByOrganization |
String, read-only. Returns the name of the organization that issued the certoficate. |
|
Methods |
||
|
|
||
| GetDecryptedMessage |
Returns RDOMail object that represents the
decrypted message. |
see example below |
| ViewCertificate(ParentWindow) |
Displays the certificate properties dialog. ParentWindow - variant, optional. Parent window to be used as the parent of the dialog box. Either an integer rperesenti HWND of the parent window or an object the supports IOleWindow interface (such Outlok.Explorer or Outlook.Inspector object). If not specified, the handle of the foreground window is used. |
set Session = CreateObject("Redemption.RDOSession") Msg.ViewCertificate(Application.ActiveExplorer)
|