Integration Server 10.11 | Built-In Services Reference Guide | SMIME Folder | Summary of Elements in this Folder | pub.smime.keystore:createSignedAndEncryptedData
 
pub.smime.keystore:createSignedAndEncryptedData
WmPublic. Digitally signs and encrypts a MIME message.
Input Parameters
envStream
java.io.InputStream The MIME message that you want to sign and encrypt (for example, the output produced by pub.mime:getEnvelopeStream).
keyStoreAlias
String Alias of the keystore containing the signing key.
keyAlias
String Alias of the private key to be used for signing.
explicit
String Optional. Flag indicating whether an implicit or explicit signature is to be generated. Set to:
*True to generate an explicit (detached) signature. This is the default.
*False to generate an implicit signature.
recipientCerts
Object List A list of byte[ ] for the partner certificates for whom this message will be encrypted.
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.
signingAlg
String Optional. The signing algorithm to use to sign the S/MIME messages. Set to:
*SHA1
*SHA224
*SHA256
*SHA384
*SHA512
*MD5
The default is SHA1.
Note:
If you do not set this parameter, Integration Server uses SHA512 algorithm to sign the incoming messages.
Note:
The MD5 signing algorithm is not available if FIPS mode is enabled on Integration Server.
Output Parameters
SMimeEnvStream
java.io.InputStream Signed and encrypted data as a stream.
Usage Notes
This service supersedes pub.smime:createSignedAndEncryptedData
You must use this service when you want to create a message that is both signed and encrypted.
For information about using aliases for keystores, truststores, and private keys, see the section Keystores and Truststores in the webMethods Integration Server Administrator’s Guide . Creating a Keystore and Truststore.