org.bouncycastle.mail.smime
Class SMIMECompressedGenerator
public class SMIMECompressedGenerator
General class for generating a pkcs7-mime message.
A simple example of usage.
SMIMECompressedGenerator fact = new SMIMECompressedGenerator();
fact.addKeyTransRecipient(cert);
MimeBodyPart smime = fact.generate(content, algorithm, "BC");
Note: Most clients expect the MimeBodyPart to be in a MimeMultipart
when it's sent.
MimeBodyPart | generate(MimeBodyPart content, String compressionOID) - generate an compressed object that contains an SMIME Compressed
object using the given provider from the contents of the passed in
message
|
MimeBodyPart | generate(MimeMessage message, String compressionOID) - generate an compressed object that contains an SMIME Compressed
object using the given provider from the contents of the passed in
message
|
ZLIB
public static final String ZLIB
SMIMECompressedGenerator
public SMIMECompressedGenerator()
base constructor
generate
public MimeBodyPart generate(MimeBodyPart content,
String compressionOID)
throws SMIMEException
generate an compressed object that contains an SMIME Compressed
object using the given provider from the contents of the passed in
message
generate
public MimeBodyPart generate(MimeMessage message,
String compressionOID)
throws SMIMEException
generate an compressed object that contains an SMIME Compressed
object using the given provider from the contents of the passed in
message