public static enum Apptentive.AuthenticationFailedReason extends java.lang.Enum<Apptentive.AuthenticationFailedReason>
| Enum Constant and Description |
|---|
EXPIRED_TOKEN
The expiration "exp" claim is expired.
|
INVALID_ALGORITHM
Currently only the HS512 signature algorithm is supported.
|
INVALID_KEY_SIGNATURE_PAIR
The Apptentive Key and Apptentive Signature fields do not match.
|
INVALID_SUB_CLAIM
Internal use only.
|
INVALID_TOKEN
The token is not signed properly, or can't be decoded.
|
MALFORMED_TOKEN
The JWT structure is constructed improperly (missing a part, etc.)
|
MISMATCHED_SUB_CLAIM
The JWT "sub" claim does not match the one previously registered to the internal Apptentive
conversation.
|
MISSING_APP_KEY
The Apptentive Key field was not specified during registration.
|
MISSING_APP_SIGNATURE
The Apptentive Signature field was not specified during registration.
|
MISSING_SUB_CLAIM
There is no "sub" property in the JWT claims.
|
REVOKED_TOKEN
The JWT has been revoked.
|
UNKNOWN
This should not happen.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
error() |
static Apptentive.AuthenticationFailedReason |
parse(java.lang.String errorType,
java.lang.String error) |
java.lang.String |
toString() |
static Apptentive.AuthenticationFailedReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Apptentive.AuthenticationFailedReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Apptentive.AuthenticationFailedReason UNKNOWN
public static final Apptentive.AuthenticationFailedReason INVALID_ALGORITHM
public static final Apptentive.AuthenticationFailedReason MALFORMED_TOKEN
public static final Apptentive.AuthenticationFailedReason INVALID_TOKEN
public static final Apptentive.AuthenticationFailedReason MISSING_SUB_CLAIM
public static final Apptentive.AuthenticationFailedReason MISMATCHED_SUB_CLAIM
public static final Apptentive.AuthenticationFailedReason INVALID_SUB_CLAIM
public static final Apptentive.AuthenticationFailedReason EXPIRED_TOKEN
public static final Apptentive.AuthenticationFailedReason REVOKED_TOKEN
public static final Apptentive.AuthenticationFailedReason MISSING_APP_KEY
public static final Apptentive.AuthenticationFailedReason MISSING_APP_SIGNATURE
public static final Apptentive.AuthenticationFailedReason INVALID_KEY_SIGNATURE_PAIR
public static Apptentive.AuthenticationFailedReason[] values()
for (Apptentive.AuthenticationFailedReason c : Apptentive.AuthenticationFailedReason.values()) System.out.println(c);
public static Apptentive.AuthenticationFailedReason valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String error()
public static Apptentive.AuthenticationFailedReason parse(java.lang.String errorType, java.lang.String error)
public java.lang.String toString()
toString in class java.lang.Enum<Apptentive.AuthenticationFailedReason>