public static enum AuthenticationExceptionReasonCodes.ErrorTypes extends Enum<AuthenticationExceptionReasonCodes.ErrorTypes>
Enum Constant and Description |
---|
AUTHENTICATION_EXCEPTION |
ILLEGAL_ARGUMENT_EXCEPTION |
JWT_AUD_CLAIM_INVALID |
JWT_AUD_CLAIM_MISSING |
JWT_CLAIM_MALFORMED |
JWT_ENCRYPTION_MISSING |
JWT_EXP_CLAIM_MISSING |
JWT_EXP_CLAIM_TOO_FAR_IN_FUTURE |
JWT_EXPIRED
1-to-1 Jose4J error code mapping
we should keep monitoring
org.jose4j.jwt.consumer.ErrorCodes
and map the codes here. |
JWT_HEADER_ALG_INVALID |
JWT_HEADER_JKU_INVALID |
JWT_HEADER_KID_LOOKUP_FAILED
ErrorCodes.MISCELLANEOUS error can be broken down
those codes below |
JWT_IAT_CLAIM_MISSING |
JWT_IAT_CLAIM_TOO_FAR_IN_FUTURE |
JWT_IAT_CLAIM_TOO_FAR_IN_PAST |
JWT_INTEGRITY_PROTECTION_MISSING |
JWT_ISS_CLAIM_INVALID |
JWT_ISS_CLAIM_LOOKUP_FAILED |
JWT_ISS_CLAIM_MISSING |
JWT_JTI_CLAIM_MISSING |
JWT_NBF_CLAIM_MISSING |
JWT_NBF_CLAIM_NOT_VALID_YET |
JWT_PAYLOAD_JSON_INVALID |
JWT_PROCESSING_FAILED |
JWT_SIGNATURE_MISSING |
JWT_SIGNATURE_VERIFICATION_FAILED |
JWT_SUB_CLAIM_INVALID |
JWT_SUB_CLAIM_MISSING |
JWT_TYP_CLAIM_INVALID |
JWT_TYP_CLAIM_MISSING |
JWT_UNKNOWN_ERROR |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static AuthenticationExceptionReasonCodes.ErrorTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthenticationExceptionReasonCodes.ErrorTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_EXPIRED
org.jose4j.jwt.consumer.ErrorCodes
and map the codes here. Not creating this as hashmap for readability.public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_EXP_CLAIM_MISSING
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_IAT_CLAIM_MISSING
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_NBF_CLAIM_MISSING
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_EXP_CLAIM_TOO_FAR_IN_FUTURE
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_NBF_CLAIM_NOT_VALID_YET
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_AUD_CLAIM_MISSING
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_AUD_CLAIM_INVALID
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_SIGNATURE_VERIFICATION_FAILED
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_SIGNATURE_MISSING
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_ISS_CLAIM_MISSING
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_ISS_CLAIM_INVALID
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_JTI_CLAIM_MISSING
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_SUB_CLAIM_MISSING
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_SUB_CLAIM_INVALID
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_PAYLOAD_JSON_INVALID
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_PROCESSING_FAILED
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_CLAIM_MALFORMED
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_ENCRYPTION_MISSING
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_INTEGRITY_PROTECTION_MISSING
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_TYP_CLAIM_MISSING
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_TYP_CLAIM_INVALID
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_IAT_CLAIM_TOO_FAR_IN_FUTURE
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_IAT_CLAIM_TOO_FAR_IN_PAST
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_HEADER_KID_LOOKUP_FAILED
ErrorCodes.MISCELLANEOUS
error can be broken down
those codes belowpublic static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_HEADER_ALG_INVALID
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_HEADER_JKU_INVALID
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_ISS_CLAIM_LOOKUP_FAILED
public static final AuthenticationExceptionReasonCodes.ErrorTypes AUTHENTICATION_EXCEPTION
public static final AuthenticationExceptionReasonCodes.ErrorTypes ILLEGAL_ARGUMENT_EXCEPTION
public static final AuthenticationExceptionReasonCodes.ErrorTypes JWT_UNKNOWN_ERROR
public static AuthenticationExceptionReasonCodes.ErrorTypes[] values()
for (AuthenticationExceptionReasonCodes.ErrorTypes c : AuthenticationExceptionReasonCodes.ErrorTypes.values()) System.out.println(c);
public static AuthenticationExceptionReasonCodes.ErrorTypes valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<AuthenticationExceptionReasonCodes.ErrorTypes>