Class RpmFileSignatureProcessor
java.lang.Object
org.eclipse.packager.rpm.signature.RpmFileSignatureProcessor
Sign existing RPM file by calling
perform(Path, InputStream, String, OutputStream, HashAlgorithm)-
Method Summary
Modifier and TypeMethodDescriptionstatic voidperform(Path rpm, InputStream privateKeyIn, String passphrase, OutputStream out, HashAlgorithm hashAlgorithm) Perform the signature of the given RPM file with the given private key.
-
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 fileprivateKeyIn- : encrypted private key asInputStreampassphrase- : passphrase to decrypt the private keyout- :OutputStreamto write to- Throws:
IOExceptionorg.bouncycastle.openpgp.PGPException
-