All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kalvan.client.constant.CommonContextCacheKey Maven / Gradle / Ivy

The newest version!
package com.kalvan.client.constant;

/**
 * 存放在RequestContext 中的缓存
 *
 * @author kalvan
 */
public class CommonContextCacheKey {

    protected CommonContextCacheKey() {

    }

    /**
     * userName 登录用户名
     */
    public static final String USER_NAME = "userName";
    /**
     * user 登录用户信息对象
     */
    public static final String USER = "user";
    /**
     * appId 接入渠道id
     */
    public static final String APP_ID = "appId";
    /**
     * 接入请求数据加密的key
     * AES key并用rsa私钥加密保护
     */
    public static final String KEY = "key";
    /**
     * 接入请求数据
     * 使用key 进行AES加密
     */
    public static final String DATA = "data";
    /**
     * 接入请求数据data明文签名
     * 使用对应appId的私钥签名,平台使用对应公钥进行验证
     */
    public static final String SIGN = "sign";
    /**
     * 接入语言
     * 参照i18n规范如zh-CN en-US
     */
    public static final String LANGUAGE = "Accept-Language";
    /**
     * 接入token
     */
    public static final String TOKEN = "Access-Token";
    /**
     * 响应的请求ID
     */
    public static final String REQUEST_ID = "Request-ID";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy