|
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")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set Msg = Session.GetMessageFromMsgFile("z:\Temp\Encrypted.msg ")
set DecryptedMsg = Msg.GetDecryptedMessage
MsgBox DecryptedMsg.Body |
Properties
Methods
|
|
|
Properties |
|
CertificateAlgorithmOID |
String, read-only.
Returns encryption algorithm identifier. See
http://msdn.microsoft.com/en-us/library/aa923698.aspx for more
details.
|
|
CertificateIssuerName
|
String, read-only.
Returns the name of the certificate issuer.
|
|
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.
|
|
CertificateSerialNumber
|
String, read-only.
Hex representation of the certificate serial number.
|
|
EncryptionKind |
rdoEncryptionKind, read-only.
Returns one of the rdoEncryptionKind enums:
ecUnknown = -1;
ecClearSigned = 0
ecOpaqueSignedOrEncrypted = 1
|
|
PublicKey
|
String, read-only.
Hex representation of the encoded public key.
|
|
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")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set Msg = Session.GetMessageFromMsgFile("z:\Temp\Encrypted.msg ")
set DecryptedMsg = Msg.GetDecryptedMessage
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 certificate.
|
|
|
Methods |
|
GetDecryptedMessage |
Returns RDOMail object that represents the
decrypted message.
|
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set Msg = Session.GetMessageFromMsgFile("z:\Temp\Encrypted.msg ")
set DecryptedMsg = Msg.GetDecryptedMessage
MsgBox DecryptedMsg.Body
|
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 Outlook.Explorer or Outlook.Inspector
object).
If not specified, the handle of the foreground window is used.
|
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set Msg = Session.GetMessageFromMsgFile("z:\Temp\Encrypted.msg ")
set DecryptedMsg = Msg.GetDecryptedMessage
Msg.ViewCertificate(Application.ActiveExplorer)
|
|