Class GpgSignature

java.lang.Object
org.eclipse.jgit.lib.GpgSignature
All Implemented Interfaces:
Serializable

public class GpgSignature extends Object implements Serializable
A structure for holding GPG signature together with additional related data.
Since:
5.3
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • signature

      private byte[] signature
  • Constructor Details

    • GpgSignature

      public GpgSignature(@NonNull byte[] signature)
      Creates a new instance with the specified signature
      Parameters:
      signature - the signature
  • Method Details

    • toExternalString

      public String toExternalString()
      Format for Git storage.

      This returns the ASCII Armor as per https://tools.ietf.org/html/rfc4880#section-6.2.

      Returns:
      a string of the signature ready to be embedded in a Git object
    • toString

      public String toString()
      Overrides:
      toString in class Object