Package com.auth0.jwt.impl
Class PayloadImpl
- java.lang.Object
-
- com.auth0.jwt.impl.PayloadImpl
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>audienceprivate java.util.DateexpiresAtprivate java.util.DateissuedAtprivate java.lang.Stringissuerprivate java.lang.StringjwtIdprivate java.util.DatenotBeforeprivate com.fasterxml.jackson.databind.ObjectReaderobjectReaderprivate java.lang.Stringsubjectprivate java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode>tree
-
Constructor Summary
Constructors Constructor Description PayloadImpl(java.lang.String issuer, java.lang.String subject, java.util.List<java.lang.String> audience, java.util.Date expiresAt, java.util.Date notBefore, java.util.Date issuedAt, java.lang.String jwtId, java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> tree, com.fasterxml.jackson.databind.ObjectReader objectReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getAudience()Get the value of the "aud" claim, or null if it's not available.ClaimgetClaim(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.DategetExpiresAt()Get the value of the "exp" claim, or null if it's not available.java.lang.StringgetId()Get the value of the "jti" claim, or null if it's not available.java.util.DategetIssuedAt()Get the value of the "iat" claim, or null if it's not available.java.lang.StringgetIssuer()Get the value of the "iss" claim, or null if it's not available.java.util.DategetNotBefore()Get the value of the "nbf" claim, or null if it's not available.java.lang.StringgetSubject()Get the value of the "sub" claim, or null if it's not available.(package private) java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode>getTree()
-
-
-
Field Detail
-
issuer
private final java.lang.String issuer
-
subject
private final java.lang.String subject
-
audience
private final java.util.List<java.lang.String> audience
-
expiresAt
private final java.util.Date expiresAt
-
notBefore
private final java.util.Date notBefore
-
issuedAt
private final java.util.Date issuedAt
-
jwtId
private final java.lang.String jwtId
-
tree
private final java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> tree
-
objectReader
private final com.fasterxml.jackson.databind.ObjectReader objectReader
-
-
Constructor Detail
-
PayloadImpl
PayloadImpl(java.lang.String issuer, java.lang.String subject, java.util.List<java.lang.String> audience, java.util.Date expiresAt, java.util.Date notBefore, java.util.Date issuedAt, java.lang.String jwtId, java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> tree, com.fasterxml.jackson.databind.ObjectReader objectReader)
-
-
Method Detail
-
getTree
java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> getTree()
-
getIssuer
public java.lang.String getIssuer()
Description copied from interface:PayloadGet the value of the "iss" claim, or null if it's not available.
-
getSubject
public java.lang.String getSubject()
Description copied from interface:PayloadGet the value of the "sub" claim, or null if it's not available.- Specified by:
getSubjectin interfacePayload- Returns:
- the Subject value or null.
-
getAudience
public java.util.List<java.lang.String> getAudience()
Description copied from interface:PayloadGet the value of the "aud" claim, or null if it's not available.- Specified by:
getAudiencein interfacePayload- Returns:
- the Audience value or null.
-
getExpiresAt
public java.util.Date getExpiresAt()
Description copied from interface:PayloadGet the value of the "exp" claim, or null if it's not available.- Specified by:
getExpiresAtin interfacePayload- Returns:
- the Expiration Time value or null.
-
getNotBefore
public java.util.Date getNotBefore()
Description copied from interface:PayloadGet the value of the "nbf" claim, or null if it's not available.- Specified by:
getNotBeforein interfacePayload- Returns:
- the Not Before value or null.
-
getIssuedAt
public java.util.Date getIssuedAt()
Description copied from interface:PayloadGet the value of the "iat" claim, or null if it's not available.- Specified by:
getIssuedAtin interfacePayload- Returns:
- the Issued At value or null.
-
getId
public java.lang.String getId()
Description copied from interface:PayloadGet the value of the "jti" claim, or null if it's not available.
-
getClaim
public Claim getClaim(java.lang.String name)
Description copied from interface:PayloadGet a Claim given it's name. If the Claim wasn't specified in the Payload, a NullClaim will be returned.
-
-