public interface Payload
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAudience()
Get the value of the "aud" claim, or null if it's not available.
|
Claim |
getClaim(java.lang.String name)
Get a Claim given it's name.
|
java.util.Map<java.lang.String,Claim> |
getClaims()
Get the Claims defined in the Token.
|
java.util.Date |
getExpiresAt()
Get the value of the "exp" claim, or null if it's not available.
|
java.lang.String |
getId()
Get the value of the "jti" claim, or null if it's not available.
|
java.util.Date |
getIssuedAt()
Get the value of the "iat" claim, or null if it's not available.
|
java.lang.String |
getIssuer()
Get the value of the "iss" claim, or null if it's not available.
|
java.util.Date |
getNotBefore()
Get the value of the "nbf" claim, or null if it's not available.
|
java.lang.String |
getSubject()
Get the value of the "sub" claim, or null if it's not available.
|
java.lang.String getIssuer()
java.lang.String getSubject()
java.util.List<java.lang.String> getAudience()
java.util.Date getExpiresAt()
java.util.Date getNotBefore()
java.util.Date getIssuedAt()
java.lang.String getId()
Claim getClaim(java.lang.String name)
name
- the name of the Claim to retrieve.java.util.Map<java.lang.String,Claim> getClaims()