Class RpmFileSignatureProcessor

java.lang.Object
org.eclipse.packager.rpm.signature.RpmFileSignatureProcessor

public class RpmFileSignatureProcessor extends Object
  • Method Details

    • perform

      public static void perform(Path rpm, InputStream privateKeyIn, String passphrase, OutputStream out, HashAlgorithm hashAlgorithm) throws IOException, org.bouncycastle.openpgp.PGPException

      Perform the signature of the given RPM file with the given private key. This support only PGP. Write the result into the given OutputStream

      Parameters:
      rpm - : RPM file
      privateKeyIn - : encrypted private key as InputStream
      passphrase - : passphrase to decrypt the private key
      out - : OutputStream to write to
      Throws:
      IOException
      org.bouncycastle.openpgp.PGPException