Class SigningStream

java.lang.Object
java.io.OutputStream
org.eclipse.packager.security.pgp.SigningStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class SigningStream extends OutputStream
  • 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 stream
      privateKey - the private key to sign with
      digestAlgorithm - the digest algorithm to use, from HashAlgorithmTags
      inline - whether to sign inline or just write the signature
      version - 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 stream
      privateKey - the private key to sign with
      digestAlgorithm - the digest algorithm to use, from HashAlgorithmTags
      inline - whether to sign inline or just write the signature
  • Method Details