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 and Description |
|---|---|
static String |
ZLIB |
encoding, useBase64| Constructor and Description |
|---|
SMIMECompressedGenerator() |
| Modifier and Type | Method and Description |
|---|---|
javax.mail.internet.MimeBodyPart |
generate(javax.mail.internet.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
|
javax.mail.internet.MimeBodyPart |
generate(javax.mail.internet.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
|
createSymmetricKeyGenerator, makeContentBodyPart, makeContentBodyPart, setContentTransferEncodingpublic static final String ZLIB
public javax.mail.internet.MimeBodyPart generate(javax.mail.internet.MimeBodyPart content,
String compressionOID)
throws SMIMEException
SMIMEExceptionpublic javax.mail.internet.MimeBodyPart generate(javax.mail.internet.MimeMessage message,
String compressionOID)
throws SMIMEException
SMIMEExceptionCopyright © 2015. All rights reserved.