|
@@ -19,7 +19,7 @@ import java.util.Map;
|
|
|
* payload的格式(用户名、创建时间、生成时间):
|
|
|
* {"sub":"wang","created":1489079981393,"exp":1489684781}
|
|
|
* signature的生成算法:
|
|
|
- * HMACSHA256(base64UrlEncode(header) + "." +base64UrlEncode(payload),secret)
|
|
|
+ * HMACSHA512(base64UrlEncode(header) + "." +base64UrlEncode(payload),secret)
|
|
|
* Created by macro on 2018/4/26.
|
|
|
*/
|
|
|
@Component
|