public static enum ECInitParams.LoginAuthType extends java.lang.Enum<ECInitParams.LoginAuthType>
| 枚举常量和说明 | 
|---|
NORMAL_AUTH
正常认证模式
 服务器认证appKey、appToken、username字段 
 | 
PASSWORD_AUTH
密码认证模式
 服务器认证appKey、username、userPassword字段 
 | 
SIG_AUTH
sig认证
 服务器认证appKey、username、token 
 | 
TEMP_PWD_AUTH
临时密码认证
 密码有一段时间的有效期,有效期之后需要重新生成临时密码进行认证 
 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
static ECInitParams.LoginAuthType | 
fromId(int authType)  | 
int | 
getAuthTypeValue()
返回当前枚举对应的登录认证类型 
 | 
static ECInitParams.LoginAuthType | 
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。 
 | 
static ECInitParams.LoginAuthType[] | 
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。 
 | 
public static final ECInitParams.LoginAuthType NORMAL_AUTH
服务器认证appKey、appToken、username字段
public static final ECInitParams.LoginAuthType PASSWORD_AUTH
服务器认证appKey、username、userPassword字段
public static final ECInitParams.LoginAuthType SIG_AUTH
服务器认证appKey、username、token
public static final ECInitParams.LoginAuthType TEMP_PWD_AUTH
密码有一段时间的有效期,有效期之后需要重新生成临时密码进行认证
public static ECInitParams.LoginAuthType[] values()
for (ECInitParams.LoginAuthType c : ECInitParams.LoginAuthType.values()) System.out.println(c);
public static ECInitParams.LoginAuthType valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public int getAuthTypeValue()
public static ECInitParams.LoginAuthType fromId(int authType)
Copyright © 2017 All rights reserved.