public class JWTHeader extends Claims
Modifier and Type | Field and Description |
---|---|
static String |
ALGORITHM
加密算法,通常为HMAC SHA256(HS256)
|
static String |
CONTENT_TYPE
内容类型(content type)
|
static String |
KEY_ID
jwk的ID编号
|
static String |
TYPE
声明类型,一般为jwt
|
Constructor and Description |
---|
JWTHeader()
构造,初始化默认(typ=JWT)
|
Modifier and Type | Method and Description |
---|---|
JWTHeader |
addHeaders(Map<String,?> headerClaims)
增加自定义JWT认证头
|
JWTHeader |
setKeyId(String keyId)
增加“kid”头信息
|
Copyright © 2024. All rights reserved.