B2B Integration : Trading Networks Built-In Services Reference : Mime Folder : Summary of Elements in this Folder : wm.tn.mime:createSignedAndEncryptedData
wm.tn.mime:createSignedAndEncryptedData
Digitally signs a MIME message, and then encrypts it.
Input Parameters
mimeSrc
Object The MIME object to digitally sign and encrypt.
privKey
Byte [ ] The private key of the party signing the message.
signerCert
Byte [ ] The digital certificate of the party signing the message.
certificates
Object [ ] (optional) The certificate chain of the party signing the message. The chain must be in hierarchical order starting with the signer's certificate in first element (element zero).
The following shows a sample of a complete certificate chain if the signing party's certificate was signed by two intermediate certifying authorities (CAs). In the following list, for example, 0 is the element and Signer's certificate is the content.
*0 - Signer's certificate
*1 - Intermediary CA certificate
*2 - Intermediary CA certificate
*3 - Root CA certificate
Typically you should specify certificates. You can omit it only if the party receiving the message is able to process this signature without an accompanying certificate chain.
explicit
String (optional) Whether you want the service to generate an implicit or explicit signature. Valid values are:
*true - Default. Generate an explicit signature.
*false - Generate an implicit signature.
recipientCerts
Object [ ] The X.509 certificates to use to encrypt the data. The certificates should be the certificates of the recipients for whom you are encrypting this message. Each element in the Object[] should contain a certificate for a single recipient (in the form of a byte array).
Note:  
When you have multiple recipients, this service creates a single message that is encrypted for all recipients. It does not create a separate message for each recipient.
encryptionAlg
String The encryption algorithm to use. Specify one of the following values: TripleDES, DES, or RC2. The default is TripleDES.
keyLength
String The length of the encryption key for RC2 encryption. Specify one of the following values: 40, 64, or 128. The default is 128.
This service uses keyLength only if you specify RC2 for encryptionAlg.
Output Parameters
mimeData
Object A MIME object containing the signed and encrypted message.
Usage Notes
This service is not compatible with the services in the pub.mime or pub.smime folders. Only use the output of this service with services in the wm.tn.mime folder.
Copyright © 2016- 2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback