Package org.kohsuke.github
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:
- tags signature verificatiion, commits signature verificatiion
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GHVerification.Reason
The possible values for reason in verification object from github.
-
Constructor Summary
Constructors Constructor Description GHVerification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPayload()
Gets the payload that was signed.GHVerification.Reason
getReason()
Gets reason for verification value.String
getSignature()
Gets signature used for the verification.boolean
isVerified()
Indicates whether GitHub considers the signature in this commit to be verified.
-
-
-
Method Detail
-
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:
- return reason of type
GHVerification.Reason
, such as "valid" or "unsigned". The possible values can be found inGHVerification.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.
-
-