Package org.bouncycastle.mail.smime
Class SMIMECompressedGenerator
- java.lang.Object
-
- org.bouncycastle.mail.smime.SMIMEGenerator
-
- org.bouncycastle.mail.smime.SMIMECompressedGenerator
-
public class SMIMECompressedGenerator extends SMIMEGenerator
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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringZLIB-
Fields inherited from class org.bouncycastle.mail.smime.SMIMEGenerator
encoding, useBase64
-
-
Constructor Summary
Constructors Constructor Description SMIMECompressedGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.mail.internet.MimeBodyPartgenerate(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 messagejavax.mail.internet.MimeBodyPartgenerate(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-
Methods inherited from class org.bouncycastle.mail.smime.SMIMEGenerator
createSymmetricKeyGenerator, makeContentBodyPart, makeContentBodyPart, setContentTransferEncoding
-
-
-
-
Field Detail
-
ZLIB
public static final java.lang.String ZLIB
- See Also:
- Constant Field Values
-
-
Method Detail
-
generate
public javax.mail.internet.MimeBodyPart generate(javax.mail.internet.MimeBodyPart content, org.bouncycastle.operator.OutputCompressor compressor) throws SMIMEExceptiongenerate an compressed object that contains an SMIME Compressed object using the given provider from the contents of the passed in message- Throws:
SMIMEException
-
generate
public javax.mail.internet.MimeBodyPart generate(javax.mail.internet.MimeMessage message, org.bouncycastle.operator.OutputCompressor compressor) throws SMIMEExceptiongenerate an compressed object that contains an SMIME Compressed object using the given provider from the contents of the passed in message- Throws:
SMIMEException
-
-