Class SMIMEGenerator

java.lang.Object
org.bouncycastle.mail.smime.SMIMEGenerator
Direct Known Subclasses:
SMIMECompressedGenerator, SMIMEEnvelopedGenerator, SMIMESignedGenerator

public class SMIMEGenerator extends Object
super class of the various generators.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    protected boolean
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    base constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    protected javax.mail.internet.MimeBodyPart
    makeContentBodyPart(javax.mail.internet.MimeBodyPart content)
    Make sure we have a valid content body part - setting the headers with defaults if neccessary.
    protected javax.mail.internet.MimeBodyPart
    makeContentBodyPart(javax.mail.internet.MimeMessage message)
    extract an appropriate body part from the passed in MimeMessage
    void
    set the content-transfer-encoding for the CMS block (enveloped data, signature, etc...) in the message.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • useBase64

      protected boolean useBase64
    • encoding

      protected String encoding
  • Constructor Details

    • SMIMEGenerator

      protected SMIMEGenerator()
      base constructor
  • Method Details

    • setContentTransferEncoding

      public void setContentTransferEncoding(String encoding)
      set the content-transfer-encoding for the CMS block (enveloped data, signature, etc...) in the message.
      Parameters:
      encoding - the encoding to use, default "base64", use "binary" for a binary encoding.
    • makeContentBodyPart

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

      protected javax.mail.internet.MimeBodyPart makeContentBodyPart(javax.mail.internet.MimeMessage message) throws SMIMEException
      extract an appropriate body part from the passed in MimeMessage
      Throws:
      SMIMEException