Class GHVerification

java.lang.Object
org.kohsuke.github.GHVerification

public class GHVerification extends Object
The commit/tag can be signed by user. This object holds the verification status. Whether the Commit/Tag is signed or not.
Author:
Sourabh Sarvotham Parkala
See Also:
  • Constructor Details

    • GHVerification

      public GHVerification()
  • Method Details

    • isVerified

      public boolean isVerified()
      Indicates whether GitHub considers the signature in this commit to be verified.
      Returns:
      true if the signature is valid else returns false.
    • getReason

      public GHVerification.Reason getReason()
      Gets reason for verification value.
      Returns:
      reason of type GHVerification.Reason, such as "valid" or "unsigned". The possible values can be found in GHVerification.Reason}
    • getSignature

      public String getSignature()
      Gets signature used for the verification.
      Returns:
      null if not signed else encoded signature.
    • getPayload

      public String getPayload()
      Gets the payload that was signed.
      Returns:
      null if not signed else encoded signature.