java.lang.Object
org.kohsuke.github.GHVerification
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe possible values for reason in verification object from github. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the payload that was signed.Gets reason for verification value.Gets signature used for the verification.Gets the time when the signature was verified by GitHub.booleanIndicates whether GitHub considers the signature in this commit to be verified.
-
Constructor Details
-
GHVerification
public GHVerification()Create default GHVerification instance
-
-
Method Details
-
getPayload
Gets the payload that was signed.- Returns:
- null if not signed else encoded signature.
-
getReason
Gets reason for verification value.- Returns:
- reason of type
GHVerification.Reason, such as "valid" or "unsigned". The possible values can be found inGHVerification.Reason}
-
getSignature
Gets signature used for the verification.- Returns:
- null if not signed else encoded signature.
-
getVerifiedAt
Gets the time when the signature was verified by GitHub.- Returns:
- the instant the signature was verified, or null if not available.
-
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.
-