Package org.bouncycastle.mime.smime
Class SMIMEEnvelopedWriter.Builder
java.lang.Object
org.bouncycastle.mime.smime.SMIMEEnvelopedWriter.Builder
- Enclosing class:
SMIMEEnvelopedWriter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddRecipientInfoGenerator
(RecipientInfoGenerator recipientGenerator) Add a generator to produce the recipient info required.build
(OutputStream mimeOut, OutputEncryptor outEnc) setBufferSize
(int bufferSize) Set the underlying string size for encapsulated datasetOriginatorInfo
(OriginatorInformation originatorInfo) setUnprotectedAttributeGenerator
(CMSAttributeTableGenerator unprotectedAttributeGenerator) withHeader
(String headerName, String headerValue) Specify a MIME header (name, value) pair for this builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setBufferSize
Set the underlying string size for encapsulated data- Parameters:
bufferSize
- length of octet strings to buffer the data.
-
setUnprotectedAttributeGenerator
public SMIMEEnvelopedWriter.Builder setUnprotectedAttributeGenerator(CMSAttributeTableGenerator unprotectedAttributeGenerator) -
setOriginatorInfo
-
withHeader
Specify a MIME header (name, value) pair for this builder. If the headerName already exists it will be overridden.- Parameters:
headerName
- name of the MIME header.headerValue
- value of the MIME header.- Returns:
- the current Builder instance.
-
addRecipientInfoGenerator
public SMIMEEnvelopedWriter.Builder addRecipientInfoGenerator(RecipientInfoGenerator recipientGenerator) Add a generator to produce the recipient info required.- Parameters:
recipientGenerator
- a generator of a recipient info object.- Returns:
- the current Builder instance.
-
build
-