-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum AuthenticationFailedReason extends Enum<AuthenticationFailedReason>
A list of error codes you will encounter when a JWT failure for logged in conversations occurs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAuthenticationFailedReason.Companion
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_KEY_SIGNATURE_PAIRThe Apptentive Key and Apptentive Signature fields do not match. Make sure you got them from the same app's Apptentive settings page.
MISSING_APP_SIGNATUREThe Apptentive Signature field was not specified during registration. You can get this from your app's Apptentive settings.
MISSING_APP_KEYThe Apptentive Key field was not specified during registration. You can get this from your app's Apptentive settings.
REVOKED_TOKENThe JWT has been revoked. This happens after a successful logout. In such cases, you will need a new JWT to login.
EXPIRED_TOKENThe expiration "exp" claim is expired. The "exp" claim is a UNIX timestamp in milliseconds. The JWT will receive this authentication failure when the "exp" time has elapsed.
INVALID_SUB_CLAIMInternal use only.
MISMATCHED_SUB_CLAIMThe JWT "sub" claim does not match the one previously registered to the internal Apptentive conversation. Internal use only.
MISSING_SUB_CLAIMThere is no "sub" property in the JWT claims. The "sub" is required, and should be an immutable, unique id for your user.
INVALID_TOKENThe token is not signed properly, or can't be decoded.
MALFORMED_TOKENThe JWT structure is constructed improperly (missing a part, etc.)
INVALID_ALGORITHMCurrently only the HS512 signature algorithm is supported.
UNKNOWNThis should not happen.
-
Method Summary
Modifier and Type Method Description final Stringerror()StringtoString()final StringgetMessage()final StringgetName()final IntegergetOrdinal()-
-
Method Detail
-
getMessage
final String getMessage()
-
getOrdinal
final Integer getOrdinal()
-
-
-
-