webMethods and Intelligent Business Operations 10.2 | Integrating Cloud Applications | Integration Server Built-In Services | SMIME 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.
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
Examples
See the following in the WmSamples package in the certified samples area of the Knowledge Center on Empower Product Support website at https://empower.softwareag.com:
sample.smime:build_EncryptedSMime

Copyright © 2015- 2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release