java.lang.Object
org.eclipse.jgit.lib.Signers
Manages the available signers.
- Since:
- 7.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic Signerget(GpgConfig.GpgFormat format) Retrieves aSignerthat can produce signatures of the given typeformat.static voidset(GpgConfig.GpgFormat format, Signer signer) Sets a specific signer to use for a specific signature type.
-
Method Details
-
get
Retrieves aSignerthat can produce signatures of the given typeformat.- Parameters:
format-GpgConfig.GpgFormatthe signer must support- Returns:
- a
Signer, ornullif none is available
-
set
Sets a specific signer to use for a specific signature type.- Parameters:
format- signature type to set thesignerforsigner- theSignerto use for signatures of typeformat; ifnull, a default implementation, if available, may be used.
-