Package org.eclipse.jgit.gpg.bc.internal
Class BouncyCastleGpgSignatureVerifier.VerificationResult
java.lang.Object
org.eclipse.jgit.gpg.bc.internal.BouncyCastleGpgSignatureVerifier.VerificationResult
- All Implemented Interfaces:
GpgSignatureVerifier.SignatureVerification
- Enclosing class:
- BouncyCastleGpgSignatureVerifier
private static class BouncyCastleGpgSignatureVerifier.VerificationResult
extends Object
implements GpgSignatureVerifier.SignatureVerification
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVerificationResult(Date creationDate, String signer, String fingerprint, String user, boolean verified, boolean expired, GpgSignatureVerifier.TrustLevel trust, String message) -
Method Summary
Modifier and TypeMethodDescriptionObtains the short or long fingerprint of the public key as stored in the signature, if known.Obtains the OpenPGP user ID associated with the key.Obtains a human-readable message giving additional information about the outcome of the verification.Obtains the signer as stored in the signature, if known.Obtains the trust level of the public key used to verify the signature.booleanTells whether the signature verification was successful.booleanTells whether the public key used for this signature verification was expired when the signature was created.
-
Field Details
-
creationDate
-
signer
-
keyUser
-
fingerprint
-
verified
private final boolean verified -
expired
private final boolean expired -
trustLevel
-
message
-
-
Constructor Details
-
VerificationResult
-
-
Method Details
-
getCreationDate
- Specified by:
getCreationDatein interfaceGpgSignatureVerifier.SignatureVerification
-
getSigner
Description copied from interface:GpgSignatureVerifier.SignatureVerificationObtains the signer as stored in the signature, if known.- Specified by:
getSignerin interfaceGpgSignatureVerifier.SignatureVerification- Returns:
- the signer, or
nullif unknown
-
getKeyUser
Description copied from interface:GpgSignatureVerifier.SignatureVerificationObtains the OpenPGP user ID associated with the key.- Specified by:
getKeyUserin interfaceGpgSignatureVerifier.SignatureVerification- Returns:
- the user id, or
nullif unknown
-
getKeyFingerprint
Description copied from interface:GpgSignatureVerifier.SignatureVerificationObtains the short or long fingerprint of the public key as stored in the signature, if known.- Specified by:
getKeyFingerprintin interfaceGpgSignatureVerifier.SignatureVerification- Returns:
- the fingerprint, or
nullif unknown
-
isExpired
public boolean isExpired()Description copied from interface:GpgSignatureVerifier.SignatureVerificationTells whether the public key used for this signature verification was expired when the signature was created.- Specified by:
isExpiredin interfaceGpgSignatureVerifier.SignatureVerification- Returns:
trueif the key was expired already,falseotherwise
-
getTrustLevel
Description copied from interface:GpgSignatureVerifier.SignatureVerificationObtains the trust level of the public key used to verify the signature.- Specified by:
getTrustLevelin interfaceGpgSignatureVerifier.SignatureVerification- Returns:
- the trust level
-
getMessage
Description copied from interface:GpgSignatureVerifier.SignatureVerificationObtains a human-readable message giving additional information about the outcome of the verification.- Specified by:
getMessagein interfaceGpgSignatureVerifier.SignatureVerification- Returns:
- the message, or
nullif none set.
-
getVerified
public boolean getVerified()Description copied from interface:GpgSignatureVerifier.SignatureVerificationTells whether the signature verification was successful.- Specified by:
getVerifiedin interfaceGpgSignatureVerifier.SignatureVerification- Returns:
trueif the signature was verified successfully;falseif not.
-