Integration Server 10.3 | Built-In Services Reference Guide | SMIME Folder | Summary of Elements in this Folder | pub.smime:createSignedAndEncryptedData
 
pub.smime:createSignedAndEncryptedData
WmPublic. Deprecated - Replaced by pub.smime.keystore:createSignedAndEncryptedData. Digitally signs a MIME message and then encrypts it.
Important:
You must use this service when you want to create a message that is both signed and encrypted. You cannot produce this type of message using the pub.smime:createSignedData and pub.smime:createEncryptedData services.
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).
privKey
byte[ ] Private key of the party signing the message.
certificates
byte[ ] [ ] Optional. The certificate chain of the party signing the message, where each byte[ ] represents a single certificate in the chain. Certificates must appear in hierarchical order, starting with the signer's certificate in element 0. The following list shows how the elements of a complete chain would appear for a certificate that was issued through two intermediate CAs:
Element
Contents
0
Signer's certificate.
1
Intermediary CA Certificate.
2
Intermediary CA Certificate.
3
Root CA Certificate.
Note:
Although this parameter is optional, it should only be omitted if the party receiving the message is able to process this signature without an accompanying certificate chain.
signerCert
byte[ ] Digital certificate of the party signing the message.
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
byte[ ][ ] X.509 certificates of the recipients for whom this message will be encrypted. Each element in the list contains the certificate for a single recipient in the form of a byte array.
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 Signed and encrypted MIME message.
Usage Notes
This service is superseded by pub.smime.keystore:createSignedAndEncryptedData.
For general information about MIME messages and using the MIME services, see the MIME-S/MIME Developer’s Guide.
See Also
pub.smime:createEncryptedData
pub.smime:processEncryptedData
pub.smime:createSignedData
pub.smime:processSignedData
pub.smime.keystore:createSignedData
pub.mime:getEnvelopeStream