Package org.eclipse.jgit.gpg.bc.internal
Class BouncyCastleGpgSigner
java.lang.Object
org.eclipse.jgit.lib.GpgSigner
org.eclipse.jgit.gpg.bc.internal.BouncyCastleGpgSigner
- All Implemented Interfaces:
GpgObjectSigner
GPG Signer using the BouncyCastle library.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanLocateSigningKey(String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider) booleancanLocateSigningKey(String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider, GpgConfig config) voidsign(CommitBuilder commit, String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider) voidsignObject(ObjectBuilder object, String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider, GpgConfig config) Methods inherited from class org.eclipse.jgit.lib.GpgSigner
getDefault, setDefault
-
Constructor Details
-
BouncyCastleGpgSigner
public BouncyCastleGpgSigner()Create a new instance.The BounceCastleProvider will be registered if necessary.
-
-
Method Details
-
canLocateSigningKey
public boolean canLocateSigningKey(@Nullable String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider) throws CanceledException - Specified by:
canLocateSigningKeyin classGpgSigner- Throws:
CanceledException
-
canLocateSigningKey
public boolean canLocateSigningKey(@Nullable String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider, GpgConfig config) throws CanceledException, UnsupportedSigningFormatException - Specified by:
canLocateSigningKeyin interfaceGpgObjectSigner- Throws:
CanceledExceptionUnsupportedSigningFormatException
-
sign
public void sign(@NonNull CommitBuilder commit, @Nullable String gpgSigningKey, @NonNull PersonIdent committer, CredentialsProvider credentialsProvider) throws CanceledException - Specified by:
signin classGpgSigner- Throws:
CanceledException
-
signObject
public void signObject(@NonNull ObjectBuilder object, @Nullable String gpgSigningKey, @NonNull PersonIdent committer, CredentialsProvider credentialsProvider, GpgConfig config) throws CanceledException, UnsupportedSigningFormatException - Specified by:
signObjectin interfaceGpgObjectSigner- Throws:
CanceledExceptionUnsupportedSigningFormatException
-