Enum Class AuthErrorCode
- All Implemented Interfaces:
Serializable,Comparable<AuthErrorCode>,Constable
Error Code for Auth Service
- Since:
- 1.0.0
- Author:
- Ramadurai Pandian
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClient errorFORBIDDENEmpty Cookie errorFORBIDDENEmpty Cookie errorInvalid TokenPASSWORD VALIDATION ERRORRESPONSE_PARSE_ERRORRESPONSE_PARSE_ERRORClient errorToken Datastore errorToken expiredEmpty Cookie errorUNAUTHORIZEDUSER VALIDATION ERROR -
Method Summary
Modifier and TypeMethodDescriptionFunction to get error codeFunction to get the error messagestatic AuthErrorCodeReturns the enum constant of this class with the specified name.static AuthErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNAUTHORIZED
UNAUTHORIZED -
FORBIDDEN
FORBIDDEN -
TOKEN_EXPIRED
Token expired -
INVALID_TOKEN
Invalid Token -
CONNECT_EXCEPTION
FORBIDDEN -
RESPONSE_PARSE_ERROR
RESPONSE_PARSE_ERROR -
REQUEST_VALIDATION_ERROR
RESPONSE_PARSE_ERROR -
USER_VALIDATION_ERROR
USER VALIDATION ERROR -
PASSWORD_VALIDATION_ERROR
PASSWORD VALIDATION ERROR -
COOKIE_NOTPRESENT_ERROR
Empty Cookie error -
TOKEN_NOTPRESENT_ERROR
Empty Cookie error -
TOKEN_DATASTORE_ERROR
Token Datastore error -
SERVER_ERROR
Client error -
TEMPLATE_ERROR
-
CLIENT_ERROR
Client error -
INVALID_DATASOURCE_ERROR
Empty Cookie error -
NAMING_EXCEPTION
-
UNABLE_CLOSE_LDAP_CONTEXT
-
PASSWORD_POLICY_EXCEPTION
-
OLD_PASSWORD_NOT_MATCH
-
USER_ALREADY_EXIST
-
ROLE_NOT_FOUND
-
USER_CREATE_EXCEPTION
-
USER_PASSWORD_EXCEPTION
-
ROLLBACK_USER_EXCEPTION
-
INVALID_DN
-
IO_EXCEPTION
-
RUNTIME_EXCEPTION
-
INVALID_REQUEST
-
USER_NOT_FOUND
-
IS_ACTIVE_FLAG_NOT_FOUND
-
MOBILE_NOT_REGISTERED
-
REST_EXCEPTION
-
KEYCLOAK_ACESSTOKEN_EXCEPTION
-
KEYCLOAK_STATE_EXCEPTION
-
INVALID_CREDENTIALS
-
REALM_NOT_FOUND
-
INDIVIDUAL_ID_NOT_FOUND
-
DOMAIN_EXCEPTION
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getErrorCode
Function to get error code- Returns:
errorCode
-
getErrorMessage
Function to get the error message- Returns:
errorMessager
-