Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Managing MIME messages | Extracting Data from MIME and S/MIME Messages | Extracting the Payload from a Signed MIME Message
 
Extracting the Payload from a Signed MIME Message
 
How Do You Know Whether the Message Is Signed?
Working with InputStreams
What Happens when the Signature is Processed?
Error Codes and Messages
How to Extract the Payload from a Signed S/MIME Message
Example—Extracting Content from a Signed S/MIME Message
When you pass a signed S/MIME message to createMimeData, it returns an empty MIME object because it cannot parse signed messages. To extract data from a signed message, you must process the message with pub.smime:processSignedData. This service reads an InputStream containing a signed message, verifies the signature, and returns a MIME object containing the message’s constituent elements.
Important:
A signer’s certificate is authenticated against the set of trusted certificates in the Integration Server truststore. If your site will receive signed messages, you must collect the certificates of CAs that you trust and add them to the truststore. For information about the Integration Server truststore and obtaining CA certificates, see webMethods Integration Server Administrator’s Guide.
Important:
This procedure is applicable only to InputStream objects and not to MimeMessage objects.