Class GpgConfig


  • public class GpgConfig
    extends Object
    Typed access to GPG related configuration options.
    Since:
    5.2
    • Constructor Detail

      • GpgConfig

        public GpgConfig​(Config config)
        Create a new GPG config, which will read configuration from config.
        Parameters:
        config - the config to read from
    • Method Detail

      • getSigningKey

        public String getSigningKey()
        Retrieves the config value of user.signingKey.
        Returns:
        the value of user.signingKey (may be null)
      • isSignCommits

        public boolean isSignCommits()
        Retrieves the config value of commit.gpgSign.
        Returns:
        the value of commit.gpgSign (defaults to false)