A simple example of usage.
CertStore certs... SMIMESignedGenerator fact = new SMIMESignedGenerator(); fact.addSigner(privKey, cert, SMIMESignedGenerator.DIGEST_SHA1); fact.addCertificatesAndCRLs(certs); MimeMultipart smime = fact.generate(content, "BC");
Note: if you are using this class with AS2 or some other protocol that does not use "7bit" as the default content transfer encoding you will need to use the constructor that allows you to specify the default content transfer encoding, such as "binary".
|
|
|
|