package com.cm.token;

/**
 * @author Administrator
 * @version 1.0
 * @className IToken
 * @description TODO
 * @date 2018/12/7 13:58
 **/
public interface IToken {

    /**
     * token有效时长，单位 ms
     */
    long TOKEN_EFFECTIVE_TIME = 30 * 60 * 1000L;

    /**
     * token类别
     */
    int TOKEN_TYPE_DEFAULT = 1;
    int TOKEN_TYPE_CONTENT = 2;
    int TOKEN_TYPE_KEY_AND_VALUE = 3;

    /**
     * token前后缀
     */
    String TOKEN_PREFIX_DEFAULT = "DefaultToken";
    String TOKEN_PREFIX_CONTENT = "ContentToken";
    String TOKEN_PREFIX_KEY_AND_VALUE = "KeyValueToken";
    String TOKEN_SUFFIX = "tokenEnd";

    String CHARSET_NAME_UTF_8 = "UTF-8";
}
