Class BouncyCastleGpgSigner

java.lang.Object
org.eclipse.jgit.lib.GpgSigner
org.eclipse.jgit.gpg.bc.internal.BouncyCastleGpgSigner
All Implemented Interfaces:
org.eclipse.jgit.lib.GpgObjectSigner

public class BouncyCastleGpgSigner extends org.eclipse.jgit.lib.GpgSigner implements org.eclipse.jgit.lib.GpgObjectSigner
GPG Signer using the BouncyCastle library.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canLocateSigningKey(String gpgSigningKey, org.eclipse.jgit.lib.PersonIdent committer, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider)
     
    boolean
    canLocateSigningKey(String gpgSigningKey, org.eclipse.jgit.lib.PersonIdent committer, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider, org.eclipse.jgit.lib.GpgConfig config)
     
    void
    sign(org.eclipse.jgit.lib.CommitBuilder commit, String gpgSigningKey, org.eclipse.jgit.lib.PersonIdent committer, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider)
     
    void
    signObject(org.eclipse.jgit.lib.ObjectBuilder object, String gpgSigningKey, org.eclipse.jgit.lib.PersonIdent committer, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider, org.eclipse.jgit.lib.GpgConfig config)
     

    Methods inherited from class org.eclipse.jgit.lib.GpgSigner

    getDefault, setDefault

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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, org.eclipse.jgit.lib.PersonIdent committer, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider) throws org.eclipse.jgit.api.errors.CanceledException
      Specified by:
      canLocateSigningKey in class org.eclipse.jgit.lib.GpgSigner
      Throws:
      org.eclipse.jgit.api.errors.CanceledException
    • canLocateSigningKey

      public boolean canLocateSigningKey(@Nullable String gpgSigningKey, org.eclipse.jgit.lib.PersonIdent committer, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider, org.eclipse.jgit.lib.GpgConfig config) throws org.eclipse.jgit.api.errors.CanceledException, org.eclipse.jgit.api.errors.UnsupportedSigningFormatException
      Specified by:
      canLocateSigningKey in interface org.eclipse.jgit.lib.GpgObjectSigner
      Throws:
      org.eclipse.jgit.api.errors.CanceledException
      org.eclipse.jgit.api.errors.UnsupportedSigningFormatException
    • sign

      public void sign(@NonNull org.eclipse.jgit.lib.CommitBuilder commit, @Nullable String gpgSigningKey, @NonNull org.eclipse.jgit.lib.PersonIdent committer, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider) throws org.eclipse.jgit.api.errors.CanceledException
      Specified by:
      sign in class org.eclipse.jgit.lib.GpgSigner
      Throws:
      org.eclipse.jgit.api.errors.CanceledException
    • signObject

      public void signObject(@NonNull org.eclipse.jgit.lib.ObjectBuilder object, @Nullable String gpgSigningKey, @NonNull org.eclipse.jgit.lib.PersonIdent committer, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider, org.eclipse.jgit.lib.GpgConfig config) throws org.eclipse.jgit.api.errors.CanceledException, org.eclipse.jgit.api.errors.UnsupportedSigningFormatException
      Specified by:
      signObject in interface org.eclipse.jgit.lib.GpgObjectSigner
      Throws:
      org.eclipse.jgit.api.errors.CanceledException
      org.eclipse.jgit.api.errors.UnsupportedSigningFormatException