@License public class PKCS7SigningStream extends SigningStream
configuratorout| Constructor and Description |
|---|
PKCS7SigningStream(OutputStream output,
SigningStreamConfigurator configurator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this output stream and releases any system resources associated
with the stream.
|
void |
flush()
Flushes this output stream and forces any buffered output bytes to be
written out to the stream.
|
void |
write(byte[] bytes)
Writes bytes.length bytes to this output stream.
|
void |
write(byte[] bytes,
int offset,
int length)
Writes length bytes from the specified byte array starting at the given
offset to this output stream.
|
void |
write(int b)
Writes the specified byte to this output stream.
|
public PKCS7SigningStream(OutputStream output, SigningStreamConfigurator configurator) throws CryptoException, CertificateExpiredException, CertificateNotYetValidException, CertificateEncodingException, GeneralSecurityException
output - the output stream to which data will be eventually written.configurator - the output signing stream configurator.CryptoException - if any of the input parameters is null.CertificateNotYetValidExceptionCertificateExpiredExceptionGeneralSecurityExceptionCertificateEncodingExceptionpublic void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] bytes)
throws IOException
write in class FilterOutputStreambytes - the data to be written.IOExceptionpublic void write(byte[] bytes,
int offset,
int length)
throws IOException
write in class FilterOutputStreambytes - an array holding the data to be written.offset - the offset at which to start writing data.length - the number of bytes to write starting at the given offset.IOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class FilterOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionCopyright © 2012-2014 Andrea Funtò. See here for terms and conditions.