Class Signers

java.lang.Object
org.eclipse.jgit.lib.Signers

public final class Signers extends Object
Manages the available signers.
Since:
7.0
  • Method Details

    • get

      public static Signer get(@NonNull GpgConfig.GpgFormat format)
      Retrieves a Signer that can produce signatures of the given type format.
      Parameters:
      format - GpgConfig.GpgFormat the signer must support
      Returns:
      a Signer, or null if none is available
    • set

      public static void set(@NonNull GpgConfig.GpgFormat format, Signer signer)
      Sets a specific signer to use for a specific signature type.
      Parameters:
      format - signature type to set the signer for
      signer - the Signer to use for signatures of type format; if null, a default implementation, if available, may be used.