Class Signer

java.lang.Object
aQute.maven.nexus.provider.Signer

public class Signer extends Object
  • Constructor Details

  • Method Details

    • sign

      public byte[] sign(File f) throws Exception
      Throws:
      Exception
    • sign

      public static int sign(File f, String cmdName, String passphrase, File output) throws Exception
      Sign the given file with gpg using the default key.
      Parameters:
      f - the file to sign
      cmdName - the name of the gpg command
      passphrase - 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 sign
      cmdName - the name of the gpg command
      key - the key to use
      passphrase - the passphrase to use
      Returns:
      null if failed, otherwise the bytes of the signature
      Throws:
      Exception