Package org.kohsuke.github
Enum GHVerification.Reason
- java.lang.Object
-
- java.lang.Enum<GHVerification.Reason>
-
- org.kohsuke.github.GHVerification.Reason
-
- All Implemented Interfaces:
Serializable,Comparable<GHVerification.Reason>
- Enclosing class:
- GHVerification
public static enum GHVerification.Reason extends Enum<GHVerification.Reason>
The possible values for reason in verification object from github.- Author:
- Sourabh Sarvotham Parkala
- See Also:
- List of possible reason values. Note graphQL documentation has currently the most updated values.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_CERTThe signing certificate or its chain could not be verified.BAD_EMAILInvalid email used for signing.EXPIRED_KEYSigning key expired.GPGVERIFY_ERRORThe GPG verification service misbehaved.GPGVERIFY_UNAVAILABLEThe GPG verification service is unavailable at the moment.INVALIDInvalid signature.MALFORMED_SIGMalformed signature.MALFORMED_SIGNATUREMalformed signature.NO_USEREmail used for signing not known to GitHub.NOT_SIGNING_KEYThe usage flags for the key that signed this don't allow signing.OCSP_ERRORValid signature, though certificate revocation check failed.OCSP_PENDINGValid signature, pending certificate revocation checking.OCSP_REVOKEDOne or more certificates in chain has been revoked.UNKNOWN_KEYKey used for signing not known to GitHub.UNKNOWN_SIGNATURE_TYPEUnknown signature type.UNSIGNEDUnsigned.UNVERIFIED_EMAILEmail used for signing unverified on GitHub.VALIDValid signature and verified by GitHub.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GHVerification.ReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static GHVerification.Reason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXPIRED_KEY
public static final GHVerification.Reason EXPIRED_KEY
Signing key expired.
-
NOT_SIGNING_KEY
public static final GHVerification.Reason NOT_SIGNING_KEY
The usage flags for the key that signed this don't allow signing.
-
GPGVERIFY_ERROR
public static final GHVerification.Reason GPGVERIFY_ERROR
The GPG verification service misbehaved.
-
GPGVERIFY_UNAVAILABLE
public static final GHVerification.Reason GPGVERIFY_UNAVAILABLE
The GPG verification service is unavailable at the moment.
-
UNSIGNED
public static final GHVerification.Reason UNSIGNED
Unsigned.
-
UNKNOWN_SIGNATURE_TYPE
public static final GHVerification.Reason UNKNOWN_SIGNATURE_TYPE
Unknown signature type.
-
NO_USER
public static final GHVerification.Reason NO_USER
Email used for signing not known to GitHub.
-
UNVERIFIED_EMAIL
public static final GHVerification.Reason UNVERIFIED_EMAIL
Email used for signing unverified on GitHub.
-
BAD_EMAIL
public static final GHVerification.Reason BAD_EMAIL
Invalid email used for signing.
-
UNKNOWN_KEY
public static final GHVerification.Reason UNKNOWN_KEY
Key used for signing not known to GitHub.
-
MALFORMED_SIGNATURE
public static final GHVerification.Reason MALFORMED_SIGNATURE
Malformed signature.
-
INVALID
public static final GHVerification.Reason INVALID
Invalid signature.
-
VALID
public static final GHVerification.Reason VALID
Valid signature and verified by GitHub.
-
BAD_CERT
public static final GHVerification.Reason BAD_CERT
The signing certificate or its chain could not be verified.
-
MALFORMED_SIG
public static final GHVerification.Reason MALFORMED_SIG
Malformed signature. (Returned by graphQL)
-
OCSP_ERROR
public static final GHVerification.Reason OCSP_ERROR
Valid signature, though certificate revocation check failed.
-
OCSP_PENDING
public static final GHVerification.Reason OCSP_PENDING
Valid signature, pending certificate revocation checking.
-
OCSP_REVOKED
public static final GHVerification.Reason OCSP_REVOKED
One or more certificates in chain has been revoked.
-
-
Method Detail
-
values
public static GHVerification.Reason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GHVerification.Reason c : GHVerification.Reason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GHVerification.Reason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-