Package org.eclipse.jgit.lib
Class GpgConfig
- java.lang.Object
-
- org.eclipse.jgit.lib.GpgConfig
-
public class GpgConfig extends java.lang.Object
Typed access to GPG related configuration options.- Since:
- 5.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GpgConfig.GpgFormat
Config values for gpg.format.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GpgConfig.GpgFormat
getKeyFormat()
Retrieves the config value of gpg.format.java.lang.String
getSigningKey()
Retrieves the config value of user.signingKey.boolean
isSignCommits()
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
)
-
-