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 java.lang.String |
ZLIB |
encoding, useBase64
Constructor and Description |
---|
SMIMECompressedGenerator() |
Modifier and Type | Method and Description |
---|---|
MimeBodyPart |
generate(MimeBodyPart content,
java.lang.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,
java.lang.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, setContentTransferEncoding
public static final java.lang.String ZLIB
public MimeBodyPart generate(MimeBodyPart content, java.lang.String compressionOID) throws SMIMEException
SMIMEException
public MimeBodyPart generate(MimeMessage message, java.lang.String compressionOID) throws SMIMEException
SMIMEException