fix comment

This commit is contained in:
Looly 2021-06-16 02:06:38 +08:00
parent 8c3298fed4
commit ca2952543a
2 changed files with 13 additions and 1 deletions

View File

@ -53,6 +53,7 @@ public class JWT {
/** /**
* 创建并解析JWT对象 * 创建并解析JWT对象
* *
* @param token JWT Token字符串格式为xxxx.yyyy.zzzz
* @return {@link JWT} * @return {@link JWT}
*/ */
public static JWT of(String token) { public static JWT of(String token) {
@ -70,6 +71,8 @@ public class JWT {
/** /**
* 构造 * 构造
*
* @param token JWT Token字符串格式为xxxx.yyyy.zzzz
*/ */
public JWT(String token) { public JWT(String token) {
this(); this();
@ -79,7 +82,7 @@ public class JWT {
/** /**
* 解析JWT内容 * 解析JWT内容
* *
* @param token JWT token * @param token JWT Token字符串格式为xxxx.yyyy.zzzz
* @return this * @return this
*/ */
public JWT parse(String token) { public JWT parse(String token) {

View File

@ -29,6 +29,7 @@ public class JWTSignerUtil {
/** /**
* HS256(HmacSHA256)签名器 * HS256(HmacSHA256)签名器
* *
* @param key 密钥
* @return 签名器 * @return 签名器
*/ */
public static JWTSigner hs256(byte[] key) { public static JWTSigner hs256(byte[] key) {
@ -38,6 +39,7 @@ public class JWTSignerUtil {
/** /**
* HS384(HmacSHA384)签名器 * HS384(HmacSHA384)签名器
* *
* @param key 密钥
* @return 签名器 * @return 签名器
*/ */
public static JWTSigner hs384(byte[] key) { public static JWTSigner hs384(byte[] key) {
@ -47,6 +49,7 @@ public class JWTSignerUtil {
/** /**
* HS512(HmacSHA512)签名器 * HS512(HmacSHA512)签名器
* *
* @param key 密钥
* @return 签名器 * @return 签名器
*/ */
public static JWTSigner hs512(byte[] key) { public static JWTSigner hs512(byte[] key) {
@ -58,6 +61,7 @@ public class JWTSignerUtil {
/** /**
* RS256(SHA256withRSA)签名器 * RS256(SHA256withRSA)签名器
* *
* @param key 密钥
* @return 签名器 * @return 签名器
*/ */
public static JWTSigner rs256(Key key) { public static JWTSigner rs256(Key key) {
@ -67,6 +71,7 @@ public class JWTSignerUtil {
/** /**
* RS384(SHA384withRSA)签名器 * RS384(SHA384withRSA)签名器
* *
* @param key 密钥
* @return 签名器 * @return 签名器
*/ */
public static JWTSigner rs384(Key key) { public static JWTSigner rs384(Key key) {
@ -76,6 +81,7 @@ public class JWTSignerUtil {
/** /**
* RS512(SHA512withRSA)签名器 * RS512(SHA512withRSA)签名器
* *
* @param key 密钥
* @return 签名器 * @return 签名器
*/ */
public static JWTSigner rs512(Key key) { public static JWTSigner rs512(Key key) {
@ -87,6 +93,7 @@ public class JWTSignerUtil {
/** /**
* ES256(SHA256withECDSA)签名器 * ES256(SHA256withECDSA)签名器
* *
* @param key 密钥
* @return 签名器 * @return 签名器
*/ */
public static JWTSigner es256(Key key) { public static JWTSigner es256(Key key) {
@ -96,6 +103,7 @@ public class JWTSignerUtil {
/** /**
* ES384(SHA383withECDSA)签名器 * ES384(SHA383withECDSA)签名器
* *
* @param key 密钥
* @return 签名器 * @return 签名器
*/ */
public static JWTSigner es384(Key key) { public static JWTSigner es384(Key key) {
@ -105,6 +113,7 @@ public class JWTSignerUtil {
/** /**
* ES512(SHA512withECDSA)签名器 * ES512(SHA512withECDSA)签名器
* *
* @param key 密钥
* @return 签名器 * @return 签名器
*/ */
public static JWTSigner es512(Key key) { public static JWTSigner es512(Key key) {