Class GpgSignatureValidator

java.lang.Object
org.wildfly.channel.gpg.GpgSignatureValidator
All Implemented Interfaces:
SignatureValidator

public class GpgSignatureValidator extends Object implements SignatureValidator
Implementation of a GPG signature validator. Uses a combination of a local GpgKeystore and GPG keyservers to resolve certificates. To resolve a public key required by the artifact signature:
  • check if the key is present in the local GpgKeystore.
  • check if one of the configured remote keystores contains the key.
  • try to download the keys linked in the gpgUrls
The GpgKeystore acts as a source of trusted keys. A new key, resolved from either the keyserver or the gpgUrls is added to the GpgKeystore and used in subsequent checks.