Integration Server 10.7 | Built-In Services Reference Guide | SMIME Folder | Summary of Elements in this Folder | pub.smime:createEncryptedData
 
pub.smime:createEncryptedData
WmPublic. Encrypts a MIME message.
Input Parameters
envStream
java.io.InputStream MIME message that you want to encrypt (for example, the output produced by pub.mime:getEnvelopeStream).
recipientCerts
byte[ ][ ] The X.509 certificates of the recipients for whom this message will be encrypted. Each element in the list represents a certificate for a single recipient in the form of a byte[ ].
Note:
When you have multiple recipients, createEncryptedData creates a single message that is encrypted for all recipients. It does not create a separate message for each recipient.
encryptionAlg
String Optional. Code specifying the encryption algorithm to use. Must be TripleDES (default), DES, or RC2.
Note:
If you have enabled the FIPS (Federal Information Processing Standards) mode , then Integration Server uses onlyTripleDES.
keyLength
String Optional. Length of the encryption key for RC2 encryption. Must be 40, 64, or 128 (default).
This parameter is ignored if encryptionAlg is not RC2.
Output Parameters
SMimeEnvStream
java.io.InputStream The encrypted MIME message.
Usage Notes
For general information about MIME messages and using the MIME services, see the MIME-S/MIME Developer’s Guide.
See Also
pub.smime:createSignedData
pub.smime:processEncryptedData
pub.mime:getEnvelopeStream