public class SignedOutputStream
extends java.io.FilterOutputStream
Constructor and Description |
---|
SignedOutputStream(java.io.OutputStream out) |
SignedOutputStream(java.security.PrivateKey sourceKey,
java.io.OutputStream out)
Create a stream that can verify the data read from the stream in
blocks.
|
SignedOutputStream(java.security.cert.X509Certificate certificate,
java.security.PrivateKey sourceKey,
java.io.OutputStream out,
java.net.Socket socket) |
Modifier and Type | Method and Description |
---|---|
void |
signBlock()
Signs the bytes written since the last signature on the stream.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b)
Write a byte to the stream.
|
public SignedOutputStream(java.security.PrivateKey sourceKey, java.io.OutputStream out) throws HandleException, java.io.IOException
HandleException
java.io.IOException
public SignedOutputStream(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public SignedOutputStream(java.security.cert.X509Certificate certificate, java.security.PrivateKey sourceKey, java.io.OutputStream out, java.net.Socket socket) throws HandleException, java.io.IOException
HandleException
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void signBlock() throws java.io.IOException, java.security.SignatureException
java.io.IOException
java.security.SignatureException