Package org.bouncycastle.mime.smime
Class SMIMESignedWriter.Builder
java.lang.Object
org.bouncycastle.mime.smime.SMIMESignedWriter.Builder
- Enclosing class:
SMIMESignedWriter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddCertificate
(X509CertificateHolder certificate) addCertificates
(org.bouncycastle.util.Store certificates) addSignerInfoGenerator
(SignerInfoGenerator signerGenerator) Add a generator to produce the signer info required.build
(OutputStream mimeOut) withHeader
(String headerName, String headerValue) Specify a MIME header (name, value) pair for this builder.
-
Constructor Details
-
Builder
public Builder() -
Builder
public Builder(boolean encapsulated)
-
-
Method Details
-
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.
-
addCertificate
public SMIMESignedWriter.Builder addCertificate(X509CertificateHolder certificate) throws CMSException - Throws:
CMSException
-
addCertificates
public SMIMESignedWriter.Builder addCertificates(org.bouncycastle.util.Store certificates) throws CMSException - Throws:
CMSException
-
addSignerInfoGenerator
Add a generator to produce the signer info required.- Parameters:
signerGenerator
- a generator for a signer info object.- Returns:
- the current Builder instance.
-
build
-