Enum AuthErrorCode

    • Enum Constant Detail

      • UNAUTHORIZED

        public static final AuthErrorCode UNAUTHORIZED
        UNAUTHORIZED
      • FORBIDDEN

        public static final AuthErrorCode FORBIDDEN
        FORBIDDEN
      • TOKEN_EXPIRED

        public static final AuthErrorCode TOKEN_EXPIRED
        Token expired
      • INVALID_TOKEN

        public static final AuthErrorCode INVALID_TOKEN
        Invalid Token
      • CONNECT_EXCEPTION

        public static final AuthErrorCode CONNECT_EXCEPTION
        FORBIDDEN
      • RESPONSE_PARSE_ERROR

        public static final AuthErrorCode RESPONSE_PARSE_ERROR
        RESPONSE_PARSE_ERROR
      • REQUEST_VALIDATION_ERROR

        public static final AuthErrorCode REQUEST_VALIDATION_ERROR
        RESPONSE_PARSE_ERROR
      • USER_VALIDATION_ERROR

        public static final AuthErrorCode USER_VALIDATION_ERROR
        USER VALIDATION ERROR
      • PASSWORD_VALIDATION_ERROR

        public static final AuthErrorCode PASSWORD_VALIDATION_ERROR
        PASSWORD VALIDATION ERROR
      • COOKIE_NOTPRESENT_ERROR

        public static final AuthErrorCode COOKIE_NOTPRESENT_ERROR
        Empty Cookie error
      • TOKEN_NOTPRESENT_ERROR

        public static final AuthErrorCode TOKEN_NOTPRESENT_ERROR
        Empty Cookie error
      • TOKEN_DATASTORE_ERROR

        public static final AuthErrorCode TOKEN_DATASTORE_ERROR
        Token Datastore error
      • SERVER_ERROR

        public static final AuthErrorCode SERVER_ERROR
        Client error
      • TEMPLATE_ERROR

        public static final AuthErrorCode TEMPLATE_ERROR
      • CLIENT_ERROR

        public static final AuthErrorCode CLIENT_ERROR
        Client error
      • INVALID_DATASOURCE_ERROR

        public static final AuthErrorCode INVALID_DATASOURCE_ERROR
        Empty Cookie error
      • NAMING_EXCEPTION

        public static final AuthErrorCode NAMING_EXCEPTION
      • UNABLE_CLOSE_LDAP_CONTEXT

        public static final AuthErrorCode UNABLE_CLOSE_LDAP_CONTEXT
      • PASSWORD_POLICY_EXCEPTION

        public static final AuthErrorCode PASSWORD_POLICY_EXCEPTION
      • OLD_PASSWORD_NOT_MATCH

        public static final AuthErrorCode OLD_PASSWORD_NOT_MATCH
      • USER_ALREADY_EXIST

        public static final AuthErrorCode USER_ALREADY_EXIST
      • ROLE_NOT_FOUND

        public static final AuthErrorCode ROLE_NOT_FOUND
      • USER_CREATE_EXCEPTION

        public static final AuthErrorCode USER_CREATE_EXCEPTION
      • USER_PASSWORD_EXCEPTION

        public static final AuthErrorCode USER_PASSWORD_EXCEPTION
      • ROLLBACK_USER_EXCEPTION

        public static final AuthErrorCode ROLLBACK_USER_EXCEPTION
      • RUNTIME_EXCEPTION

        public static final AuthErrorCode RUNTIME_EXCEPTION
      • INVALID_REQUEST

        public static final AuthErrorCode INVALID_REQUEST
      • USER_NOT_FOUND

        public static final AuthErrorCode USER_NOT_FOUND
      • IS_ACTIVE_FLAG_NOT_FOUND

        public static final AuthErrorCode IS_ACTIVE_FLAG_NOT_FOUND
      • MOBILE_NOT_REGISTERED

        public static final AuthErrorCode MOBILE_NOT_REGISTERED
      • REST_EXCEPTION

        public static final AuthErrorCode REST_EXCEPTION
      • KEYCLOAK_ACESSTOKEN_EXCEPTION

        public static final AuthErrorCode KEYCLOAK_ACESSTOKEN_EXCEPTION
      • KEYCLOAK_STATE_EXCEPTION

        public static final AuthErrorCode KEYCLOAK_STATE_EXCEPTION
      • INVALID_CREDENTIALS

        public static final AuthErrorCode INVALID_CREDENTIALS
      • REALM_NOT_FOUND

        public static final AuthErrorCode REALM_NOT_FOUND
    • Method Detail

      • values

        public static AuthErrorCode[] 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 (AuthErrorCode c : AuthErrorCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AuthErrorCode 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 name
        NullPointerException - if the argument is null
      • getErrorCode

        public String getErrorCode()
        Function to get error code
        Returns:
        errorCode
      • getErrorMessage

        public String getErrorMessage()
        Function to get the error message
        Returns:
        errorMessager