|
|
@ -25,6 +25,7 @@ public class JwtUtils { |
|
|
|
* |
|
|
|
* |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static String createJWT(String id, String subject, long ttlMillis) { |
|
|
|
public static String createJWT(String id, String subject, long ttlMillis) { |
|
|
|
|
|
|
|
ttlMillis = ttlMillis * 1000; |
|
|
|
SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.HS256; |
|
|
|
SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.HS256; |
|
|
|
long nowMillis = System.currentTimeMillis(); |
|
|
|
long nowMillis = System.currentTimeMillis(); |
|
|
|
Date now = new Date(nowMillis); |
|
|
|
Date now = new Date(nowMillis); |
|
|
|