public class JwtPayload extends MapWrapper<String,Object>
| Modifier and Type | Field and Description |
|---|---|
static String |
AUD |
static String |
EXP |
static String |
IAT |
static String |
ISS |
static String |
JTI |
static String |
NBF |
static String |
SUB |
map| Modifier | Constructor and Description |
|---|---|
|
JwtPayload() |
protected |
JwtPayload(Map<String,Object> map) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAudiences() |
Double |
getDouble(String key) |
Date |
getExpiresAt() |
Date |
getIssuedAt() |
String |
getIssuer() |
String |
getJwtId() |
Long |
getLong(String key) |
Date |
getNotBefore() |
Date |
getNumericDate(String key) |
<T> T |
getObject(String key) |
Double |
getRequiredDouble(String key) |
Long |
getRequiredLong(String key) |
Date |
getRequiredNumericDate(String key) |
<T> T |
getRequiredObject(String key) |
String |
getSubject() |
JwtPayload |
put(String key,
Object value) |
JwtPayload |
putArray(String key,
Object... values) |
JwtPayload |
putNumericDate(String key,
Date value) |
JwtPayload |
setAudiences(String... values) |
JwtPayload |
setExpiresAt(Date value) |
JwtPayload |
setIssuedAt(Date value) |
JwtPayload |
setIssuedAtNow() |
JwtPayload |
setIssuer(String value) |
JwtPayload |
setJwtId(String value) |
JwtPayload |
setNotBefore(Date value) |
JwtPayload |
setSubject(String value) |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static final String ISS
public static final String SUB
public static final String AUD
public static final String EXP
public static final String NBF
public static final String IAT
public static final String JTI
public String getIssuer()
public JwtPayload setIssuer(String value)
public String getSubject()
public JwtPayload setSubject(String value)
public JwtPayload setAudiences(String... values)
public Date getExpiresAt()
public JwtPayload setExpiresAt(Date value)
public Date getNotBefore()
public JwtPayload setNotBefore(Date value)
public Date getIssuedAt()
public JwtPayload setIssuedAt(Date value)
public JwtPayload setIssuedAtNow()
public String getJwtId()
public JwtPayload setJwtId(String value)
public JwtPayload put(String key, Object value)
public JwtPayload putArray(String key, Object... values)
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
IllegalStateExceptionpublic JwtPayload putNumericDate(String key, Date value)
Copyright © 2020. All rights reserved.