Constants.java
1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package cn.runsa.crmapp.rest;
/**
* restful webservice constants
*
* @author Stephen
*/
public class Constants {
/**
* request attr name of token
*/
public static final String ACCESS_TOKEN_ATTR_NAME = "REST_TOKEN";
public static final String API_ACCOUNT_ATTR_NAME = "API_ACCOUNT";
public static final String API_PROXY_TARGET_ATTR_NAME = "API_TARGET";
public static final String WEBSERVICE_FIXED_PARAMTER_API_ID = "apiId";
public static final String WEBSERVICE_FIXED_PARAMTER_API_SIGN = "apiSign";
public static final String WEBSERVICE_FIXED_PARAMTER_API_NONCE = "nonce";
public static final String WEBSERVICE_FIXED_PARAMTER_API_TIMESTAMP = "timestamp";
public static final String WEBSERVICE_FIXED_PARAMTER_API_TYPE = "_type";
public static final String WEBSERVICE_FIXED_PARAMTER_API_TARGET = "target";
public static final long WEBSERVICE_DISABLE_TIME = 20*1000l;
public static final long WEBSERVICE_ENABLE_OLDPASSWD = 60*1000l;
public static final String PHONE_CAPTCHA_KEY = "phoneCapKey";
public static final String PHONE_CAPTCHA_VALUE = "phoneCapVal";
public static final String PHONE_CAPTCHA_RESULT = "phoneCapResult";
public static final String WEBSERVICE_DEBUG_MODE = "crm-rest-debug";
}