Top Description Fields Constructors Methods
org.eclipse.jgit.lib

public final Class Signers

extends Object
Class Inheritance
Imports
java.text.MessageFormat, java.util.EnumMap, .Map, .ServiceConfigurationError, .ServiceLoader, java.util.concurrent.ConcurrentHashMap, org.eclipse.jgit.annotations.NonNull, org.eclipse.jgit.internal.JGitText, org.slf4j.Logger, .LoggerFactory

Manages the available signers.
Since
7.0

Field Summary

Modifier and TypeField and Description
private static final Logger
private static final Map<GpgConfig.GpgFormat, SignerFactory>
private static final Map<GpgConfig.GpgFormat, Signer>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Signer

Returns:

a Signer, or null if none is available
get
(GpgConfig.GpgFormat
GpgConfig.GpgFormat the signer must support
format
)

Retrieves a Signer that can produce signatures of the given type format.

private static Map<GpgConfig.GpgFormat, SignerFactory>
public static void
set(GpgConfig.GpgFormat
signature type to set the signer for
format
,
Signer
the Signer to use for signatures of type format; if null, a default implementation, if available, may be used.
signer
)

Sets a specific signer to use for a specific signature type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGback to summary
private static final Logger LOG
SIGNER_FACTORIESback to summary
private static final Map<GpgConfig.GpgFormat, SignerFactory> SIGNER_FACTORIES
SIGNERSback to summary
private static final Map<GpgConfig.GpgFormat, Signer> SIGNERS

Constructor Detail

Signersback to summary
private Signers()

Method Detail

getback to summary
public static Signer get(GpgConfig.GpgFormat format)

Retrieves a Signer that can produce signatures of the given type format.

Parameters
format:GpgConfig.GpgFormat

GpgConfig.GpgFormat the signer must support

Returns:Signer

a Signer, or null if none is available

loadSignersback to summary
private static Map<GpgConfig.GpgFormat, SignerFactory> loadSigners()
setback to summary
public static void set(GpgConfig.GpgFormat format, Signer signer)

Sets a specific signer to use for a specific signature type.

Parameters
format:GpgConfig.GpgFormat

signature type to set the signer for

signer:Signer

the Signer to use for signatures of type format; if null, a default implementation, if available, may be used.