Package org.eclipse.jgit.lib
Interface GpgSignatureVerifier.SignatureVerification
-
- All Known Implementing Classes:
BouncyCastleGpgSignatureVerifier.VerificationResult
- Enclosing interface:
- GpgSignatureVerifier
public static interface GpgSignatureVerifier.SignatureVerification
ASignatureVerification
returns data about a (positively or negatively) verified signature.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Date
getCreationDate()
java.lang.String
getKeyFingerprint()
Obtains the short or long fingerprint of the public key as stored in the signature, if known.java.lang.String
getKeyUser()
Obtains the OpenPGP user ID associated with the key.java.lang.String
getMessage()
Obtains a human-readable message giving additional information about the outcome of the verification.java.lang.String
getSigner()
Obtains the signer as stored in the signature, if known.GpgSignatureVerifier.TrustLevel
getTrustLevel()
Obtains the trust level of the public key used to verify the signature.boolean
getVerified()
Tells whether the signature verification was successful.boolean
isExpired()
Tells whether the public key used for this signature verification was expired when the signature was created.
-
-
-
Method Detail
-
getCreationDate
@NonNull java.util.Date getCreationDate()
-
getSigner
java.lang.String getSigner()
Obtains the signer as stored in the signature, if known.- Returns:
- the signer, or
null
if unknown
-
getKeyFingerprint
java.lang.String getKeyFingerprint()
Obtains the short or long fingerprint of the public key as stored in the signature, if known.- Returns:
- the fingerprint, or
null
if unknown
-
getKeyUser
java.lang.String getKeyUser()
Obtains the OpenPGP user ID associated with the key.- Returns:
- the user id, or
null
if unknown
-
isExpired
boolean isExpired()
Tells whether the public key used for this signature verification was expired when the signature was created.- Returns:
true
if the key was expired already,false
otherwise
-
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:
true
if the signature was verified successfully;false
if not.
-
getMessage
java.lang.String getMessage()
Obtains a human-readable message giving additional information about the outcome of the verification.- Returns:
- the message, or
null
if none set.
-
-