Package com.sankcrm.erp.auth.exception
Enum Class AuthStatusCode
- All Implemented Interfaces:
com.sankcrm.erp.common.statuscode.StatusCode,Serializable,Comparable<AuthStatusCode>,Constable
public enum AuthStatusCode
extends Enum<AuthStatusCode>
implements com.sankcrm.erp.common.statuscode.StatusCode
认证中心错误码
- Since:
- 1.0.0
- Author:
- zhsxin@outlook.com
- create time:
- 2020/5/5 上午9:56
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface com.sankcrm.erp.common.statuscode.StatusCode
com.sankcrm.erp.common.statuscode.StatusCode.Utils -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription服务响应异常账号绑定了其他的账号授权已过期微信授权失败挑战已过期或已被刷新。提交答案与挑战摘要不匹配;挑战缺失、过期或已被刷新时使用 CAPTCHA_EXPIRED。验证码生成、验证或登录尝试超过限流边界。登录策略要求提供验证码,但请求未包含有效答案。启用中的验证码策略无法安全访问存储服务时返回;服务端应失败关闭。账号不匹配应用编号错误应用不支持组合认证应用不支持注册不支持授权登陆新密码与原密码一样令牌过期账号绑定了其他用户信息 -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthStatusCodeReturns the enum constant of this class with the specified name.static AuthStatusCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.sankcrm.erp.common.statuscode.StatusCode
equals, equals, getCode, getMessage
-
Enum Constant Details
-
PWD_ERR
-
ACC_DISABLE
-
NOT_LOGIN
-
UNAUTHORIZED
-
NO_ACCOUNT
-
LOGIN_FAILURE
-
NOT_SSO
不支持授权登陆- Since:
- 2.1.5
-
ISS_ERR
应用编号错误- Since:
- 2.1.5
-
TOKEN_EXP
令牌过期- Since:
- 2.1.5
-
NO_COMBO
应用不支持组合认证- Since:
- 2.4.0
-
COMBO_ACCOUNT_ERR
账号不匹配- Since:
- 2.4.0
-
CODE_KEY_ERROR
-
IS_CANNOT_MANAGER
-
NOT_INIT
-
SMS_CODE_EXPIRE
-
CAPTCHA_REQUIRED
登录策略要求提供验证码,但请求未包含有效答案。 -
CAPTCHA_INVALID
提交答案与挑战摘要不匹配;挑战缺失、过期或已被刷新时使用 CAPTCHA_EXPIRED。 -
CAPTCHA_EXPIRED
挑战已过期或已被刷新。 -
CAPTCHA_SERVICE_UNAVAILABLE
启用中的验证码策略无法安全访问存储服务时返回;服务端应失败关闭。 -
CAPTCHA_RATE_LIMITED
验证码生成、验证或登录尝试超过限流边界。 -
NOT_REGISTER
应用不支持注册- Since:
- 2.1.3
-
USER_BOUND
账号绑定了其他用户信息 -
AUTH_EXPIRE
授权已过期 -
AUTH_FAIL
微信授权失败 -
APP_USER_BOUND
账号绑定了其他的账号 -
PWD_NO_CHANGE
新密码与原密码一样- Since:
- 2.4.0
-
API_REQ_ERROR
服务响应异常- Since:
- 2.3.0
-
-
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
-