Top Description Fields Constructors Methods
org.eclipse.jgit.lib

public Class GpgSignature

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Static Imports
java.nio.charset.StandardCharsets.US_ASCII

A structure for holding GPG signature together with additional related data.
Since
5.3

Field Summary

Modifier and TypeField and Description
private static final long
private byte[]

Constructor Summary

AccessConstructor and Description
public
GpgSignature(byte[]
the signature
signature
)

Creates a new instance with the specified signature

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

a string of the signature ready to be embedded in a Git object
toExternalString
()

Format for Git storage.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID
signatureback to summary
private byte[] signature

Constructor Detail

GpgSignatureback to summary
public GpgSignature(byte[] signature)

Creates a new instance with the specified signature

Parameters
signature:byte[]

the signature

Method Detail

toExternalStringback to summary
public String toExternalString()

Format for Git storage.

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

Returns:String

a string of the signature ready to be embedded in a Git object

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
@SuppressWarnings:nls