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. |
SMimeEnvStream | java.io.InputStream Signed and encrypted MIME message. |