Constants.java 701 Bytes
package com.diligrp.cashier.boss;

public final class Constants {
    // 商户信息缓存Key
    public static final String MERCHANT_REDIS_KEY = "cashier:merchant:%s";
    // TOKEN信息缓存Key
    public static final String TOKEN_REDIS_KEY = "cashier:token:%s";
    // TOKEN参数名称
    public static final String TOKEN_PARAM_NAME = "token";
    // TOKEN签名算法
    public static final String TOKEN_SIGN_ALGORITHM = "HmacSHA256";
    // TOKEN的签名长度
    public static final int TOKEN_SIGN_LENGTH = 8;
    // TOKEN过期时长,单位秒
    public static final long TOKEN_TIMEOUT_SECONDS = 60;

    public final static String CONTENT_TYPE = "application/json;charset=UTF-8";

}