public class BinaryCanonicalizer extends java.lang.Object implements Canonicalizer
To enable this Canonicalizer set it as default canonicalizer to be used:
SMimeParameters.setCanonicalizer(new BinaryCanonicalizer());or (if you do not want to use it by default) set it for your SignedContent object only.
SignedContent
Constructor and Description |
---|
BinaryCanonicalizer()
Empty default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
canonicalizeInputStream(iaik.utils.LineInputStream is,
java.lang.String boundary)
Wraps an canonicalizing input stream around the given input stream
|
java.io.OutputStream |
canonicalizeOutputStream(java.io.OutputStream os,
java.lang.String contentType,
java.lang.String contentTransferEncoding)
Wraps an canonicalizing output stream around the given output stream.
|
public java.io.OutputStream canonicalizeOutputStream(java.io.OutputStream os, java.lang.String contentType, java.lang.String contentTransferEncoding)
canonicalizeOutputStream
in interface Canonicalizer
os
- the output stream where the MIME body part shall be written.contentType
- the MIME content type of the body part to be writtencontentTransferEncoding
- the content transfer encoding of the body part
to be written.public java.io.InputStream canonicalizeInputStream(iaik.utils.LineInputStream is, java.lang.String boundary)
canonicalizeInputStream
in interface Canonicalizer
is
- the input stream representing the MIME entity to be canonicalizedboundary
- the boundary line indicating the end of the MIME entity