Step | Description |
1 | This step acquires an InputStream containing a signed MIME message. This example uses a helper service to produce a test message. In a production solution, it is more likely that a MIME message would be passed into the pipeline by a content handler or a back-end system. |
2 | This step takes the InputStream generated in step 1 and processes the signature. If the signature is valid, this step produces a MIME object called mimeData, containing the parsed message. If the signature is invalid, this step returns an empty mimeData object and sets the verify flag to “false.” |
3 | This step checks whether or not the signature was processed successfully by testing the value of the output variable verify. If verify is “true,” this step extracts the payload and converts it to a String. If verify is “false,” this step collects the error information in the pipeline and passes it to an error-logging service. |