public class JWTPayload extends Claims implements RegisteredPayload<JWTPayload>
详细介绍见:https://www.jianshu.com/p/576dbf44b2ae
AUDIENCE, EXPIRES_AT, ISSUED_AT, ISSUER, JWT_ID, NOT_BEFORE, SUBJECT
Constructor and Description |
---|
JWTPayload() |
Modifier and Type | Method and Description |
---|---|
JWTPayload |
addPayloads(Map<String,?> payloadClaims)
增加自定义JWT认证载荷信息
|
JWTPayload |
setPayload(String name,
Object value)
设置Payload值
|
getClaim, getClaimsJson, parse, putAll, setClaim, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setAudience, setExpiresAt, setIssuedAt, setIssuer, setJWTId, setNotBefore, setSubject
public JWTPayload addPayloads(Map<String,?> payloadClaims)
payloadClaims
- 载荷信息public JWTPayload setPayload(String name, Object value)
RegisteredPayload
setPayload
in interface RegisteredPayload<JWTPayload>
name
- payload名value
- payload值Copyright © 2024. All rights reserved.