Package org.eclipse.jgit.lib
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GpgSignature(byte[] signature)
Creates a new instance with the specified 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 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
-
-