org.bouncycastle.mail.smime

Class SMIMEGenerator

Known Direct Subclasses:
SMIMECompressedGenerator, SMIMEEnvelopedGenerator, SMIMESignedGenerator

public class SMIMEGenerator
extends java.lang.Object

super class of the various generators.

Field Summary

protected String
encoding
protected boolean
useBase64

Constructor Summary

SMIMEGenerator()
base constructor

Method Summary

protected MimeBodyPart
makeContentBodyPart(MimeBodyPart content)
Make sure we have a valid content body part - setting the headers with defaults if neccessary.
protected MimeBodyPart
makeContentBodyPart(MimeMessage message)
extract an appropriate body part from the passed in MimeMessage
void
setContentTransferEncoding(String encoding)
set the content-transfer-encoding for the signature.

Field Details

encoding

protected String encoding


useBase64

protected boolean useBase64

Constructor Details

SMIMEGenerator

protected SMIMEGenerator()
base constructor

Method Details

makeContentBodyPart

protected MimeBodyPart makeContentBodyPart(MimeBodyPart content)
            throws SMIMEException
Make sure we have a valid content body part - setting the headers with defaults if neccessary.


makeContentBodyPart

protected MimeBodyPart makeContentBodyPart(MimeMessage message)
            throws SMIMEException
extract an appropriate body part from the passed in MimeMessage


setContentTransferEncoding

public void setContentTransferEncoding(String encoding)
set the content-transfer-encoding for the signature.