Class Keyserver

java.lang.Object
org.wildfly.channel.gpg.Keyserver

public class Keyserver extends Object
Retrieves a public key from a remote GPG keyserver using a PKS query
  • Constructor Details

    • Keyserver

      public Keyserver(List<URL> serverUrls)
  • Method Details

    • downloadKey

      public org.bouncycastle.openpgp.PGPPublicKeyRing downloadKey(String keyID) throws org.bouncycastle.openpgp.PGPException, IOException
      download a public key matching the keyID from one of defined GPG keyservers
      Parameters:
      keyID - - hex representation of a GPG public key
      Returns:
      - the public key associated with the keyID or null if not found
      Throws:
      org.bouncycastle.openpgp.PGPException
      IOException