Package org.eclipse.jgit.lib
Class GpgConfig
- java.lang.Object
-
- org.eclipse.jgit.lib.GpgConfig
-
public class GpgConfig extends java.lang.ObjectTyped access to GPG related configuration options.- Since:
- 5.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGpgConfig.GpgFormatConfig values for gpg.format.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GpgConfig.GpgFormatgetKeyFormat()Retrieves the config value of gpg.format.java.lang.StringgetSigningKey()Retrieves the config value of user.signingKey.booleanisSignCommits()Retrieves the config value of commit.gpgSign.
-
-
-
Field Detail
-
config
private final Config config
-
-
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
-
getKeyFormat
public GpgConfig.GpgFormat getKeyFormat()
Retrieves the config value of gpg.format.- Returns:
- the
GpgConfig.GpgFormat
-
getSigningKey
public java.lang.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)
-
-