Module org.eclipse.jgit
Package org.eclipse.jgit.lib
Record Class SignatureVerifier.SignatureVerification
java.lang.Object
java.lang.Record
org.eclipse.jgit.lib.SignatureVerifier.SignatureVerification
- Record Components:
verifierName- the name of the verifier that created this verification resultcreationDate- date and time the signature was createdsigner- the signer as stored in the signature, ornullif unknownkeyFingerprint- fingerprint of the public key, ornullif unknownkeyUser- user associated with the key, ornullif unknownverified- whether the signature verification was successfulexpired- whether the public key used for this signature verification was expired when the signature was createdtrustLevel- the trust level of the public key used to verify the signaturemessage- human-readable message giving additional information about the outcome of the verification, possiblynull
- Enclosing interface:
- SignatureVerifier
public static record SignatureVerifier.SignatureVerification(String verifierName, Date creationDate, String signer, String keyFingerprint, String keyUser, boolean verified, boolean expired, SignatureVerifier.TrustLevel trustLevel, String message)
extends Record
A
SignatureVerification returns data about a (positively or
negatively) verified signature.-
Constructor Summary
ConstructorsConstructorDescriptionSignatureVerification(String verifierName, Date creationDate, String signer, String keyFingerprint, String keyUser, boolean verified, boolean expired, SignatureVerifier.TrustLevel trustLevel, String message) Creates an instance of aSignatureVerificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreationDaterecord component.final booleanIndicates whether some other object is "equal to" this one.booleanexpired()Returns the value of theexpiredrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thekeyFingerprintrecord component.keyUser()Returns the value of thekeyUserrecord component.message()Returns the value of themessagerecord component.signer()Returns the value of thesignerrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrustLevelrecord component.booleanverified()Returns the value of theverifiedrecord component.Returns the value of theverifierNamerecord component.
-
Constructor Details
-
SignatureVerification
public SignatureVerification(String verifierName, Date creationDate, String signer, String keyFingerprint, String keyUser, boolean verified, boolean expired, @NonNull SignatureVerifier.TrustLevel trustLevel, String message) Creates an instance of aSignatureVerificationrecord class.- Parameters:
verifierName- the value for theverifierNamerecord componentcreationDate- the value for thecreationDaterecord componentsigner- the value for thesignerrecord componentkeyFingerprint- the value for thekeyFingerprintrecord componentkeyUser- the value for thekeyUserrecord componentverified- the value for theverifiedrecord componentexpired- the value for theexpiredrecord componenttrustLevel- the value for thetrustLevelrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
verifierName
Returns the value of theverifierNamerecord component.- Returns:
- the value of the
verifierNamerecord component
-
creationDate
Returns the value of thecreationDaterecord component.- Returns:
- the value of the
creationDaterecord component
-
signer
Returns the value of thesignerrecord component.- Returns:
- the value of the
signerrecord component
-
keyFingerprint
Returns the value of thekeyFingerprintrecord component.- Returns:
- the value of the
keyFingerprintrecord component
-
keyUser
Returns the value of thekeyUserrecord component.- Returns:
- the value of the
keyUserrecord component
-
verified
public boolean verified()Returns the value of theverifiedrecord component.- Returns:
- the value of the
verifiedrecord component
-
expired
public boolean expired()Returns the value of theexpiredrecord component.- Returns:
- the value of the
expiredrecord component
-
trustLevel
Returns the value of thetrustLevelrecord component.- Returns:
- the value of the
trustLevelrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-