(Map<String, Object> claims, byte[] secret)
| 106 | |
| 107 | /// Signs `claims` with HS256 and returns the encoded token. |
| 108 | public static String signHs256(Map<String, Object> claims, byte[] secret) { |
| 109 | return sign(claims, secret, HS256); |
| 110 | } |
| 111 | |
| 112 | /// Signs `claims` with HS384 and returns the encoded token. |
| 113 | public static String signHs384(Map<String, Object> claims, byte[] secret) { |