public class SigningStream extends OutputStream
| Constructor and Description |
|---|
SigningStream(OutputStream stream,
org.bouncycastle.openpgp.PGPPrivateKey privateKey,
int digestAlgorithm,
boolean inline)
Create a new signing stream
|
SigningStream(OutputStream stream,
org.bouncycastle.openpgp.PGPPrivateKey privateKey,
int digestAlgorithm,
boolean inline,
String version)
Create a new signing stream
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
testInit() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flush, writepublic SigningStream(OutputStream stream, org.bouncycastle.openpgp.PGPPrivateKey privateKey, int digestAlgorithm, boolean inline, String version)
stream - the actual output streamprivateKey - the private key to sign withdigestAlgorithm - the digest algorithm to use, from HashAlgorithmTagsinline - whether to sign inline or just write the signatureversion - the optional version which will be in the signature commentpublic SigningStream(OutputStream stream, org.bouncycastle.openpgp.PGPPrivateKey privateKey, int digestAlgorithm, boolean inline)
stream - the actual output streamprivateKey - the private key to sign withdigestAlgorithm - the digest algorithm to use, from HashAlgorithmTagsinline - whether to sign inline or just write the signatureprotected void testInit()
throws IOException
IOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2016. All rights reserved.