Class AgentDownloader

java.lang.Object
co.elastic.apm.attach.AgentDownloader

public class AgentDownloader extends Object
A utility for downloading any given version of the Elastic APM Java agent from maven central. After being downloaded, the agent jar is verified to match the expected PGP signature from maven central. If verification fails, the agent is removed from the local storage and the entire task fails.
  • Field Details

    • USER_AGENT

      public static final String USER_AGENT
  • Constructor Details

  • Method Details

    • getCliJarVersion

      public static String getCliJarVersion()
    • getPublicKeys

      public Map<String,byte[]> getPublicKeys()
      Returns the public keys used to sign agent artifacts
      Returns:
      map of signing keys, with key ID as key, and the raw public key value as value