| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final OutputStream | |
| public static final Map | |
| public static final Map | |
| private final CMSSignedDataStreamGenerator | |
| public static final Map |
| Access | Constructor and Description |
|---|---|
| private | SMIMESignedWriter(SMIMESignedWriter.
|
| Modifier and Type | Method and Description |
|---|---|
| public OutputStream | Returns: an output stream for data to be signed to be written to.Implements abstract org. |
| boundary | back to summary |
|---|---|
| private final String boundary | |
| contentTransferEncoding | back to summary |
|---|---|
| private final String contentTransferEncoding | |
| mimeOut | back to summary |
|---|---|
| private final OutputStream mimeOut | |
| RFC3851_MICALGS | back to summary |
|---|---|
| public static final Map<K, V> RFC3851_MICALGS | |
| RFC5751_MICALGS | back to summary |
|---|---|
| public static final Map<K, V> RFC5751_MICALGS | |
| sigGen | back to summary |
|---|---|
| private final CMSSignedDataStreamGenerator sigGen | |
| STANDARD_MICALGS | back to summary |
|---|---|
| public static final Map<K, V> STANDARD_MICALGS | |
| SMIMESignedWriter | back to summary |
|---|---|
| private SMIMESignedWriter(SMIMESignedWriter. | |
| getContentStream | back to summary |
|---|---|
| public OutputStream getContentStream() throws IOException Implements abstract org. Return a content stream for the signer - note data written to this stream needs to properly canonicalised if necessary.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| private static final String[] | |
| private static final String[] | |
| private final boolean | |
| private static final String[] | |
| private static final String[] | |
| private final Map | |
| private final Map | |
| private final CMSSignedDataStreamGenerator |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public SMIMESignedWriter. | |
| public SMIMESignedWriter. | |
| private void | |
| public SMIMESignedWriter. | Returns: the current Builder instance.a generator for a signer info object. signerGenerator)Add a generator to produce the signer info required. |
| public SMIMESignedWriter | |
| private String | |
| public SMIMESignedWriter. | Returns: the current Builder instance.name of the MIME header. headerName, String value of the MIME header. headerValue)Specify a MIME header (name, value) pair for this builder. |
| contentTransferEncoding | back to summary |
|---|---|
| pack-priv String contentTransferEncoding | |
| detHeaders | back to summary |
|---|---|
| private static final String[] detHeaders | |
| detValues | back to summary |
|---|---|
| private static final String[] detValues | |
| encapsulated | back to summary |
|---|---|
| private final boolean encapsulated | |
| encHeaders | back to summary |
|---|---|
| private static final String[] encHeaders | |
| encValues | back to summary |
|---|---|
| private static final String[] encValues | |
| extraHeaders | back to summary |
|---|---|
| private final Map<String, String> extraHeaders | |
| micAlgs | back to summary |
|---|---|
| private final Map<K, V> micAlgs | |
| sigGen | back to summary |
|---|---|
| private final CMSSignedDataStreamGenerator sigGen | |
| Builder | back to summary |
|---|---|
| public Builder() | |
| Builder | back to summary |
|---|---|
| public Builder(boolean encapsulated) | |
| addBoundary | back to summary |
|---|---|
| private void addBoundary(StringBuffer header, String boundary) | |
| addCertificate | back to summary |
|---|---|
| public SMIMESignedWriter. | |
| addCertificates | back to summary |
|---|---|
| public SMIMESignedWriter. | |
| addHashHeader | back to summary |
|---|---|
| private void addHashHeader(StringBuffer header, List<E> signers) | |
| addSignerInfoGenerator | back to summary |
|---|---|
| public SMIMESignedWriter. Add a generator to produce the signer info required.
| |
| build | back to summary |
|---|---|
| public SMIMESignedWriter build(OutputStream mimeOut) | |
| generateBoundary | back to summary |
|---|---|
| private String generateBoundary() | |
| withHeader | back to summary |
|---|---|
| public SMIMESignedWriter. Specify a MIME header (name, value) pair for this builder. If the headerName already exists it will be overridden.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final OutputStream | |
| private final OutputStream | |
| private final OutputStream | |
| private final ByteArrayOutputStream |
| Access | Constructor and Description |
|---|---|
| pack-priv | ContentOutputStream(OutputStream main, OutputStream backing, ByteArrayOutputStream sigStream, OutputStream sigBase)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public void | write(byte[]
the data. buf)Overrides java. b.length bytes from the specified byte array
to this output stream.
|
| public void | write(byte[]
the data. buf, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. len bytes from the specified byte array
starting at offset off to this output stream.
|
| public void | write(int
the i)byte.Implements abstract java. |
| backing | back to summary |
|---|---|
| private final OutputStream backing | |
| main | back to summary |
|---|---|
| private final OutputStream main | |
| sigBase | back to summary |
|---|---|
| private final OutputStream sigBase | |
| sigStream | back to summary |
|---|---|
| private final ByteArrayOutputStream sigStream | |
| ContentOutputStream | back to summary |
|---|---|
| pack-priv ContentOutputStream(OutputStream main, OutputStream backing, ByteArrayOutputStream sigStream, OutputStream sigBase) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| write | back to summary |
|---|---|
| public void write(byte[] buf) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(byte[] buf, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| write | back to summary |
|---|---|
| public void write(int i) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |