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
Modifier and TypeClassDescriptionstatic enum
The possible values for reason in verification object from github. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the payload that was signed.Gets reason for verification value.Gets signature used for the verification.boolean
Indicates whether GitHub considers the signature in this commit to be verified.
-
Constructor Details
-
GHVerification
public GHVerification()Create default GHVerification instance
-
-
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
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.
-
getPayload
Gets the payload that was signed.- Returns:
- null if not signed else encoded signature.
-