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 | How Do You Know Whether the Message Is Signed?
 
How Do You Know Whether the Message Is Signed?
If your solution always receives signed messages, you can simply pass those messages to processSignedData when you receive them. However, if your solution receives both signed and unsigned messages, you will need to “test” the message to see whether or not it is signed and pass only signed messages to the processSignedData service.
To discover whether a MIME message is signed, pass it to the createMimeData service and check the status of the signed variable afterwards. If the value of signed is “true,” you must pass the message to processSignedData for signature verification.