public class SMIMECompressedGenerator extends SMIMEGenerator
SMIMECompressedGenerator fact = new SMIMECompressedGenerator();
MimeBodyPart smime = fact.generate(content, algorithm);
Note: Most clients expect the MimeBodyPart to be in a MimeMultipart
when it's sent.| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ZLIB |
encoding, useBase64| Constructor | Description |
|---|---|
SMIMECompressedGenerator() |
| Modifier and Type | Method | Description |
|---|---|---|
javax.mail.internet.MimeBodyPart |
generate(javax.mail.internet.MimeBodyPart content,
org.bouncycastle.operator.OutputCompressor compressor) |
generate an compressed object that contains an SMIME Compressed
object using the given provider from the contents of the passed in
message
|
javax.mail.internet.MimeBodyPart |
generate(javax.mail.internet.MimeMessage message,
org.bouncycastle.operator.OutputCompressor compressor) |
generate an compressed object that contains an SMIME Compressed
object using the given provider from the contents of the passed in
message
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSymmetricKeyGenerator, makeContentBodyPart, makeContentBodyPart, setContentTransferEncodingpublic static final java.lang.String ZLIB
public javax.mail.internet.MimeBodyPart generate(javax.mail.internet.MimeBodyPart content,
org.bouncycastle.operator.OutputCompressor compressor)
throws SMIMEException
SMIMEExceptionpublic javax.mail.internet.MimeBodyPart generate(javax.mail.internet.MimeMessage message,
org.bouncycastle.operator.OutputCompressor compressor)
throws SMIMEException
SMIMEException