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 result
creationDate - date and time the signature was created
signer - the signer as stored in the signature, or null if unknown
keyFingerprint - fingerprint of the public key, or null if unknown
keyUser - user associated with the key, or null if unknown
verified - whether the signature verification was successful
expired - whether the public key used for this signature verification was expired when the signature was created
trustLevel - the trust level of the public key used to verify the signature
message - human-readable message giving additional information about the outcome of the verification, possibly null
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 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 a SignatureVerification record class.
      Parameters:
      verifierName - the value for the verifierName record component
      creationDate - the value for the creationDate record component
      signer - the value for the signer record component
      keyFingerprint - the value for the keyFingerprint record component
      keyUser - the value for the keyUser record component
      verified - the value for the verified record component
      expired - the value for the expired record component
      trustLevel - the value for the trustLevel record component
      message - the value for the message record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • verifierName

      public String verifierName()
      Returns the value of the verifierName record component.
      Returns:
      the value of the verifierName record component
    • creationDate

      public Date creationDate()
      Returns the value of the creationDate record component.
      Returns:
      the value of the creationDate record component
    • signer

      public String signer()
      Returns the value of the signer record component.
      Returns:
      the value of the signer record component
    • keyFingerprint

      public String keyFingerprint()
      Returns the value of the keyFingerprint record component.
      Returns:
      the value of the keyFingerprint record component
    • keyUser

      public String keyUser()
      Returns the value of the keyUser record component.
      Returns:
      the value of the keyUser record component
    • verified

      public boolean verified()
      Returns the value of the verified record component.
      Returns:
      the value of the verified record component
    • expired

      public boolean expired()
      Returns the value of the expired record component.
      Returns:
      the value of the expired record component
    • trustLevel

      Returns the value of the trustLevel record component.
      Returns:
      the value of the trustLevel record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component