Top Description Inners Fields Constructors Methods
org.bouncycastle.mail.smime

public Class SMIMECompressedGenerator

extends SMIMEGenerator
Class Inheritance
Imports
java.io.IOException, .OutputStream, java.security.AccessController, .PrivilegedAction, jakarta.activation.CommandMap, .MailcapCommandMap, jakarta.mail.MessagingException, jakarta.mail.internet.MimeBodyPart, .MimeMessage, org.bouncycastle.cms.CMSCompressedDataGenerator, .CMSCompressedDataStreamGenerator, org.bouncycastle.operator.OutputCompressor

General class for generating a pkcs7-mime compressed message. A simple example of usage.
     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.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final String
public static final String
Inherited from org.bouncycastle.mail.smime.SMIMEGenerator:
encodinguseBase64

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod 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.

Inherited from org.bouncycastle.mail.smime.SMIMEGenerator:
makeContentBodyPartmakeContentBodyPartsetContentTransferEncoding

Field Detail

COMPRESSED_CONTENT_TYPEback to summary
private static final String COMPRESSED_CONTENT_TYPE
ZLIBback to summary
public static final String ZLIB

Constructor Detail

SMIMECompressedGeneratorback to summary
public SMIMECompressedGenerator()

Method Detail

generateback 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

generateback 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

makeback 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.

org.bouncycastle.mail.smime back to summary

private Class SMIMECompressedGenerator.ContentCompressor

extends Object
implements SMIMEStreamingProcessor
Class Inheritance
  • java.lang.Object
  • org.bouncycastle.mail.smime.SMIMECompressedGenerator.ContentCompressor
All Implemented Interfaces
org.bouncycastle.mail.smime.SMIMEStreamingProcessor

Field Summary

Modifier and TypeField and Description
private final OutputCompressor
private final MimeBodyPart

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

compressorback to summary
private final OutputCompressor compressor
contentback to summary
private final MimeBodyPart content

Constructor Detail

ContentCompressorback to summary
pack-priv ContentCompressor(MimeBodyPart content, OutputCompressor compressor)

Method Detail

writeback to summary
public void write(OutputStream out) throws IOException

Implements org.bouncycastle.mail.smime.SMIMEStreamingProcessor.write.