Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Mime Folder | Summary of Elements in this Folder | wm.tn.mime:processEncryptedData
 
wm.tn.mime:processEncryptedData
Decrypts the specified encrypted MIME object and returns the decrypted MIME message.
Input Parameters
mimeSrc
Object A MIME object containing the encrypted data that you want decrypted.
recipientCert
Byte [ ] (optional) The digital certificate of the party receiving the message.
privKey
Byte [ ] (optional) The private key of the party receiving the message (i.e., the party whose public key was used to encrypt the message).
createDigest
String (optional) Whether to compute the message digest for the encrypted MIME message. Valid values are:
*yes - Compute a message digest.
*no - Default. Do not compute a message digest.
digestAlgorithm
String (optional) The algorithm to use to compute the digest if you specified yes for createDigest. You can specify one of the following values for digestAlgorithm: SHA-1 or MD5.SHA-1 is the default.
Output Parameters
mimeData
Object A MIME object containing the parsed contents of the decrypted message.
messageDigest
String Digest of the decrypted message.
encrypted
String (optional) Whether mimeData is an encrypted message. Valid values are:
*true - The MIME object mimeData is encrypted.
*false - The MIME object mimeData is not encrypted.
signed
String (optional) Whether mimeData is a signed message. Valid values are:
*true - The MIME object mimeData is signed.
*false - The MIME object mimeData is not signed.
certsOnly
String (optional) Whether mimeData contains only digital certificates. Valid values are:
*true - MIME object mimeData contains only digital certificates.
*false - MIME object mimeData contains a regular payload.
Usage Notes
*This service is not compatible with the services in the pub.mime or pub.smime folders. Only use the output of this service with services in the wm.tn.mime folder.
*All headers in the decrypted message are digested. If you need to compute the digest for selected headers, use the wm.tn.mime:writeToStream service.