org.bouncycastle.mail.smime

Class SMIMEGenerator

public class SMIMEGenerator extends Object

super class of the various generators.
Field Summary
protected Stringencoding
protected booleanuseBase64
Constructor Summary
protected SMIMEGenerator()
base constructor
Method Summary
protected KeyGeneratorcreateSymmetricKeyGenerator(String encryptionOID, String provider)
protected MimeBodyPartmakeContentBodyPart(MimeBodyPart content)
Make sure we have a valid content body part - setting the headers with defaults if neccessary.
protected MimeBodyPartmakeContentBodyPart(MimeMessage message)
extract an appropriate body part from the passed in MimeMessage
voidsetContentTransferEncoding(String encoding)
set the content-transfer-encoding for the signature.

Field Detail

encoding

protected String encoding

useBase64

protected boolean useBase64

Constructor Detail

SMIMEGenerator

protected SMIMEGenerator()
base constructor

Method Detail

createSymmetricKeyGenerator

protected KeyGenerator createSymmetricKeyGenerator(String encryptionOID, String provider)

makeContentBodyPart

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

makeContentBodyPart

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

setContentTransferEncoding

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