🐛 SIGN_KEY修改为一致

This commit is contained in:
smallchill 2019-10-17 23:58:14 +08:00
parent 6ef7cf6884
commit f61491cd00

View File

@ -17,6 +17,7 @@ package org.springblade.gateway.utils;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;
import org.springblade.core.launch.constant.TokenConstant;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
@ -28,8 +29,8 @@ import java.util.Base64;
*/
public class JwtUtil {
public static String SIGN_KEY = "BladeX";
public static String BEARER = "bearer";
public static String SIGN_KEY = TokenConstant.SIGN_KEY;
public static String BEARER = TokenConstant.BEARER;
public static Integer AUTH_LENGTH = 7;
public static String BASE64_SECURITY = Base64.getEncoder().encodeToString(SIGN_KEY.getBytes(StandardCharsets.UTF_8));