public class

SMIMECompressedGenerator

extends SMIMEGenerator
java.lang.Object
   ↳ org.bouncycastle.mail.smime.SMIMEGenerator
     ↳ org.bouncycastle.mail.smime.SMIMECompressedGenerator

Class Overview

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.

Summary

Constants
String ZLIB
[Expand]
Inherited Fields
From class org.bouncycastle.mail.smime.SMIMEGenerator
Public Constructors
SMIMECompressedGenerator()
Public Methods
MimeBodyPart generate(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
MimeBodyPart generate(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
[Expand]
Inherited Methods
From class org.bouncycastle.mail.smime.SMIMEGenerator
From class java.lang.Object

Constants

public static final String ZLIB

Constant Value: "1.2.840.113549.1.9.16.3.8"

Public Constructors

public SMIMECompressedGenerator ()

Public Methods

public MimeBodyPart generate (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

public MimeBodyPart generate (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