public class JwtToken extends Object implements Serializable
| Constructor and Description |
|---|
JwtToken(JoseHeader header,
JwtPayload payload) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAudiences() |
Double |
getDouble(String key) |
Date |
getExpiresAt() |
JoseHeader |
getHeader() |
Date |
getIssuedAt() |
String |
getIssuer() |
String |
getJwtId() |
Long |
getLong(String key) |
Date |
getNotBefore() |
Date |
getNumericDate(String key) |
<T> T |
getObject(String key) |
JwtPayload |
getPayload() |
Double |
getRequiredDouble(String key) |
Long |
getRequiredLong(String key) |
Date |
getRequiredNumericDate(String key) |
<T> T |
getRequiredObject(String key) |
String |
getSubject() |
public JwtToken(JoseHeader header, JwtPayload payload)
public JoseHeader getHeader()
public JwtPayload getPayload()
public String getIssuer()
public String getSubject()
public Date getExpiresAt()
public Date getNotBefore()
public Date getIssuedAt()
public String getJwtId()
public Long getRequiredLong(String key) throws IllegalStateException
IllegalStateExceptionpublic Double getRequiredDouble(String key) throws IllegalStateException
IllegalStateExceptionpublic <T> T getObject(String key)
public <T> T getRequiredObject(String key) throws IllegalStateException
IllegalStateExceptionpublic Date getRequiredNumericDate(String key) throws IllegalStateException
IllegalStateExceptionCopyright © 2020. All rights reserved.