Class SigningStream
java.lang.Object
java.io.OutputStream
org.eclipse.packager.security.pgp.SigningStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionSigningStream(OutputStream stream, org.bouncycastle.openpgp.PGPPrivateKey privateKey, int digestAlgorithm, boolean inline) Create a new signing streamSigningStream(OutputStream stream, org.bouncycastle.openpgp.PGPPrivateKey privateKey, int digestAlgorithm, boolean inline, String version) Create a new signing stream -
Method Summary
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Constructor Details
-
SigningStream
public SigningStream(OutputStream stream, org.bouncycastle.openpgp.PGPPrivateKey privateKey, int digestAlgorithm, boolean inline, String version) Create a new signing stream- Parameters:
stream- the actual output streamprivateKey- the private key to sign withdigestAlgorithm- the digest algorithm to use, fromHashAlgorithmTagsinline- whether to sign inline or just write the signatureversion- the optional version which will be in the signature comment
-
SigningStream
public SigningStream(OutputStream stream, org.bouncycastle.openpgp.PGPPrivateKey privateKey, int digestAlgorithm, boolean inline) Create a new signing stream- Parameters:
stream- the actual output streamprivateKey- the private key to sign withdigestAlgorithm- the digest algorithm to use, fromHashAlgorithmTagsinline- whether to sign inline or just write the signature
-
-
Method Details
-
testInit
- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-