Input Parameter | Description |
recipientsKeystoreAlias | String Alias of the recipient’s keystore. |
recipientsKeyAlias | String Alias of the private key in the recipient’s keystore. |
Step | Description |
1 | This step acquires an InputStream containing a signed and encrypted MIME message. This example uses a helper service to produce the 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 attempts to create a MIME object from the InputStream produced in step 1. |
3 | This step tests the encrypted flag to see whether the message is encrypted. If it is, it obtains the credentials needed to decrypt the message and passes those credentials and the message to the processEncryptedData service. Note that the stream output variable is linked to the SMimeEnvStream input parameter, because the original InputStream from step 1 was emptied by step 2. Note that if encrypted is “false,” execution falls through to step 4. |
4 | This step tests the signed flag to see whether the message is signed. If it is, it passes the message to the processSignedData service. Note that the stream output variable is linked to the SMimeEnvStream input parameter, because the original InputStream from step 1 was emptied in step 2. (When a message is decrypted in step 3, the processEncryptedData service produces the stream used by this step.) Note that if signed is “false,” execution falls through to step 5. |
5 | This step extracts the data from the mimeData object produced by the preceding steps. |