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.boolean
Tells whether the signature verification was successful.boolean
Tells 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:
getCreationDate
in interfaceGpgSignatureVerifier.SignatureVerification
-
getSigner
Description copied from interface:GpgSignatureVerifier.SignatureVerification
Obtains the signer as stored in the signature, if known.- Specified by:
getSigner
in interfaceGpgSignatureVerifier.SignatureVerification
- Returns:
- the signer, or
null
if unknown
-
getKeyUser
Description copied from interface:GpgSignatureVerifier.SignatureVerification
Obtains the OpenPGP user ID associated with the key.- Specified by:
getKeyUser
in interfaceGpgSignatureVerifier.SignatureVerification
- Returns:
- the user id, or
null
if unknown
-
getKeyFingerprint
Description copied from interface:GpgSignatureVerifier.SignatureVerification
Obtains the short or long fingerprint of the public key as stored in the signature, if known.- Specified by:
getKeyFingerprint
in interfaceGpgSignatureVerifier.SignatureVerification
- Returns:
- the fingerprint, or
null
if unknown
-
isExpired
public boolean isExpired()Description copied from interface:GpgSignatureVerifier.SignatureVerification
Tells whether the public key used for this signature verification was expired when the signature was created.- Specified by:
isExpired
in interfaceGpgSignatureVerifier.SignatureVerification
- Returns:
true
if the key was expired already,false
otherwise
-
getTrustLevel
Description copied from interface:GpgSignatureVerifier.SignatureVerification
Obtains the trust level of the public key used to verify the signature.- Specified by:
getTrustLevel
in interfaceGpgSignatureVerifier.SignatureVerification
- Returns:
- the trust level
-
getMessage
Description copied from interface:GpgSignatureVerifier.SignatureVerification
Obtains a human-readable message giving additional information about the outcome of the verification.- Specified by:
getMessage
in interfaceGpgSignatureVerifier.SignatureVerification
- Returns:
- the message, or
null
if none set.
-
getVerified
public boolean getVerified()Description copied from interface:GpgSignatureVerifier.SignatureVerification
Tells whether the signature verification was successful.- Specified by:
getVerified
in interfaceGpgSignatureVerifier.SignatureVerification
- Returns:
true
if the signature was verified successfully;false
if not.
-