| Modifier and Type | Field and Description |
|---|---|
static String |
ID_NONE
定义一个常量ID_NONE,表示没有ID的情况
|
static NoneJWTSigner |
NONE
创建一个NoneJWTSigner实例,用于处理没有签名的JWT
|
| Constructor and Description |
|---|
NoneJWTSigner() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm()
获取算法
|
static boolean |
isNone(String alg)
判断给定的算法是否为无签名的算法
|
String |
sign(String headerBase64,
String payloadBase64)
签名
|
boolean |
verify(String headerBase64,
String payloadBase64,
String signBase64)
验签
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlgorithmIdpublic static final String ID_NONE
public static NoneJWTSigner NONE
public static boolean isNone(String alg)
alg - 算法public String sign(String headerBase64, String payloadBase64)
JWTSignerpublic boolean verify(String headerBase64, String payloadBase64, String signBase64)
JWTSignerpublic String getAlgorithm()
JWTSignergetAlgorithm in interface JWTSignerCopyright © 2025. All rights reserved.