Class GpgSignature

  • All Implemented Interfaces:
    java.io.Serializable

    public class GpgSignature
    extends java.lang.Object
    implements java.io.Serializable
    A structure for holding GPG signature together with additional related data.
    Since:
    5.3
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      GpgSignature​(byte[] signature)
      Creates a new instance with the specified signature
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toExternalString()
      Format for Git storage.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • signature

        private byte[] signature
    • Constructor Detail

      • GpgSignature

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

      • toExternalString

        public java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object