public class JwtClaimsSet extends Object
JSON Web Token Claim Set.
Constructor and Description |
---|
JwtClaimsSet(String token)
Create a JWT claim set from a token string.
|
Modifier and Type | Method and Description |
---|---|
Object |
getClaim(String name)
Return the claim for the key.
|
Date |
getExpirationTime()
Return the JWT expiration time
|
Map<String,Object> |
getHeader() |
Map<String,Object> |
getPayload() |
String |
getSignature() |
String |
getStringClaim(String name)
Return the string claim for the key.
|
public JwtClaimsSet(String token)
Create a JWT claim set from a token string.
token
- token string (must be non-null and not empty)public String getSignature()
public Date getExpirationTime()
Return the JWT expiration time
public String getStringClaim(String name) throws ParseException
Return the string claim for the key.
name
- key for the claimParseException
- if not a stringCopyright © 2016–2023. All rights reserved.