Module org.eclipse.jgit
Package org.eclipse.jgit.lib
Interface GpgSignatureVerifier.SignatureVerification
-
- Enclosing interface:
- GpgSignatureVerifier
public static interface GpgSignatureVerifier.SignatureVerificationASignatureVerificationreturns data about a (positively or negatively) verified signature.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DategetCreationDate()StringgetKeyFingerprint()Obtains the short or long fingerprint of the public key as stored in the signature, if known.StringgetKeyUser()Obtains the OpenPGP user ID associated with the key.StringgetMessage()Obtains a human-readable message giving additional information about the outcome of the verification.StringgetSigner()Obtains the signer as stored in the signature, if known.GpgSignatureVerifier.TrustLevelgetTrustLevel()Obtains the trust level of the public key used to verify the signature.booleangetVerified()Tells whether the signature verification was successful.booleanisExpired()Tells whether the public key used for this signature verification was expired when the signature was created.
-
-
-
Method Detail
-
getSigner
String getSigner()
Obtains the signer as stored in the signature, if known.- Returns:
- the signer, or
nullif unknown
-
getKeyFingerprint
String getKeyFingerprint()
Obtains the short or long fingerprint of the public key as stored in the signature, if known.- Returns:
- the fingerprint, or
nullif unknown
-
getKeyUser
String getKeyUser()
Obtains the OpenPGP user ID associated with the key.- Returns:
- the user id, or
nullif unknown
-
isExpired
boolean isExpired()
Tells whether the public key used for this signature verification was expired when the signature was created.- Returns:
trueif the key was expired already,falseotherwise
-
getTrustLevel
@NonNull GpgSignatureVerifier.TrustLevel getTrustLevel()
Obtains the trust level of the public key used to verify the signature.- Returns:
- the trust level
-
getVerified
boolean getVerified()
Tells whether the signature verification was successful.- Returns:
trueif the signature was verified successfully;falseif not.
-
getMessage
String getMessage()
Obtains a human-readable message giving additional information about the outcome of the verification.- Returns:
- the message, or
nullif none set.
-
-