Package aQute.maven.nexus.provider
Class Signer
java.lang.Object
aQute.maven.nexus.provider.Signer
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Signer
-
Signer
-
-
Method Details
-
sign
- Throws:
Exception
-
sign
Sign the given file with gpg using the default key.- Parameters:
f- the file to signcmdName- the name of the gpg commandpassphrase- the passphrase to use- Returns:
- null if failed, otherwise the bytes of the signature
- Throws:
Exception
-
sign
public static int sign(File f, String cmdName, String key, String passphrase, File output) throws Exception Sign the given file with gpg.- Parameters:
f- the file to signcmdName- the name of the gpg commandkey- the key to usepassphrase- the passphrase to use- Returns:
- null if failed, otherwise the bytes of the signature
- Throws:
Exception
-