Constants.java 1.22 KB
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";

}