- java.lang.Object
-
- com.appslandia.common.base.MapWrapper<String,Object>
-
- com.appslandia.common.jwt.JwtClaims
-
- com.appslandia.common.jwt.JwtPayload
-
- All Implemented Interfaces:
Serializable,Map<String,Object>
public class JwtPayload extends JwtClaims
- Author:
- Loc Ha
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JwtPayload()JwtPayload(Map<String,Object> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAudiences()DategetExpiresAt()DategetIssuedAt()StringgetIssuer()StringgetJwtId()DategetNotBefore()StringgetSubject()JwtPayloadset(String key, Object value)JwtPayloadsetArray(String key, Object... values)JwtPayloadsetAudiences(String... values)JwtPayloadsetExpiresAt(Date value)JwtPayloadsetExpiresIn(long expiresIn, TimeUnit unit)JwtPayloadsetIssuedAt(Date value)JwtPayloadsetIssuedAtNow()JwtPayloadsetIssuer(String value)JwtPayloadsetJwtId(String value)JwtPayloadsetNotBefore(Date value)JwtPayloadsetNumericDate(String key, long timeInMs)JwtPayloadsetNumericDate(String key, Date value)JwtPayloadsetSubject(String value)-
Methods inherited from class com.appslandia.common.jwt.JwtClaims
getDate, getNumericDate, put
-
Methods inherited from class com.appslandia.common.base.MapWrapper
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
ISS
public static final String ISS
- See Also:
- Constant Field Values
-
SUB
public static final String SUB
- See Also:
- Constant Field Values
-
AUD
public static final String AUD
- See Also:
- Constant Field Values
-
EXP
public static final String EXP
- See Also:
- Constant Field Values
-
NBF
public static final String NBF
- See Also:
- Constant Field Values
-
IAT
public static final String IAT
- See Also:
- Constant Field Values
-
JTI
public static final String JTI
- See Also:
- Constant Field Values
-
-
Method Detail
-
set
public JwtPayload set(String key, Object value)
-
setArray
public JwtPayload setArray(String key, Object... values)
-
setNumericDate
public JwtPayload setNumericDate(String key, Date value)
- Overrides:
setNumericDatein classJwtClaims
-
setNumericDate
public JwtPayload setNumericDate(String key, long timeInMs)
- Overrides:
setNumericDatein classJwtClaims
-
getIssuer
public String getIssuer()
-
setIssuer
public JwtPayload setIssuer(String value)
-
getSubject
public String getSubject()
-
setSubject
public JwtPayload setSubject(String value)
-
setAudiences
public JwtPayload setAudiences(String... values)
-
getExpiresAt
public Date getExpiresAt()
-
setExpiresAt
public JwtPayload setExpiresAt(Date value)
-
setExpiresIn
public JwtPayload setExpiresIn(long expiresIn, TimeUnit unit)
-
getNotBefore
public Date getNotBefore()
-
setNotBefore
public JwtPayload setNotBefore(Date value)
-
getIssuedAt
public Date getIssuedAt()
-
setIssuedAt
public JwtPayload setIssuedAt(Date value)
-
setIssuedAtNow
public JwtPayload setIssuedAtNow()
-
getJwtId
public String getJwtId()
-
setJwtId
public JwtPayload setJwtId(String value)
-
-