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 | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public MimeBodyPart | generate(MimeBodyPart content, OutputCompressor compressor)
generate an compressed object that contains an SMIME Compressed object using the given provider from the contents of the passed in message |
| public MimeBodyPart | generate(MimeMessage message, OutputCompressor compressor)
generate an compressed object that contains an SMIME Compressed object using the given provider from the contents of the passed in message |
| private MimeBodyPart | make(MimeBodyPart content, OutputCompressor compressor)
generate an compressed object that contains an SMIME Compressed object using the given compression algorithm. |
| COMPRESSED_CONTENT_TYPE | back to summary |
|---|---|
| private static final String COMPRESSED_CONTENT_TYPE | |
| ZLIB | back to summary |
|---|---|
| public static final String ZLIB | |
| SMIMECompressedGenerator | back to summary |
|---|---|
| public SMIMECompressedGenerator() | |
| generate | back to summary |
|---|---|
| public MimeBodyPart generate(MimeBodyPart content, OutputCompressor compressor) 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 | back to summary |
|---|---|
| public MimeBodyPart generate(MimeMessage message, OutputCompressor compressor) throws SMIMEException generate an compressed object that contains an SMIME Compressed object using the given provider from the contents of the passed in message | |
| make | back to summary |
|---|---|
| private MimeBodyPart make(MimeBodyPart content, OutputCompressor compressor) throws SMIMEException generate an compressed object that contains an SMIME Compressed object using the given compression algorithm. | |
| Modifier and Type | Field and Description |
|---|---|
| private final OutputCompressor | |
| private final MimeBodyPart |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| compressor | back to summary |
|---|---|
| private final OutputCompressor compressor | |
| content | back to summary |
|---|---|
| private final MimeBodyPart content | |
| ContentCompressor | back to summary |
|---|---|
| pack-priv ContentCompressor(MimeBodyPart content, OutputCompressor compressor) | |
| write | back to summary |
|---|---|
| public void write(OutputStream out) throws IOException Implements org. | |