Package com.auth0.jwt.impl
Class PayloadImpl
java.lang.Object
com.auth0.jwt.impl.PayloadImpl
- All Implemented Interfaces:
Payload
The PayloadImpl class implements the Payload interface.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the value of the "aud" claim, or null if it's not available.Get a Claim given it's name.Get the Claims defined in the Token.Get the value of the "exp" claim, or null if it's not available.getId()
Get the value of the "jti" claim, or null if it's not available.Get the value of the "iat" claim, or null if it's not available.Get the value of the "iss" claim, or null if it's not available.Get the value of the "nbf" claim, or null if it's not available.Get the value of the "sub" claim, or null if it's not available.getTree()
-
Field Details
-
issuer
-
subject
-
audience
-
expiresAt
-
notBefore
-
issuedAt
-
jwtId
-
tree
-
objectReader
private final com.fasterxml.jackson.databind.ObjectReader objectReader
-
-
Constructor Details
-
PayloadImpl
-
-
Method Details
-
getTree
-
getIssuer
Description copied from interface:Payload
Get the value of the "iss" claim, or null if it's not available. -
getSubject
Description copied from interface:Payload
Get the value of the "sub" claim, or null if it's not available.- Specified by:
getSubject
in interfacePayload
- Returns:
- the Subject value or null.
-
getAudience
Description copied from interface:Payload
Get the value of the "aud" claim, or null if it's not available.- Specified by:
getAudience
in interfacePayload
- Returns:
- the Audience value or null.
-
getExpiresAt
Description copied from interface:Payload
Get the value of the "exp" claim, or null if it's not available.- Specified by:
getExpiresAt
in interfacePayload
- Returns:
- the Expiration Time value or null.
-
getNotBefore
Description copied from interface:Payload
Get the value of the "nbf" claim, or null if it's not available.- Specified by:
getNotBefore
in interfacePayload
- Returns:
- the Not Before value or null.
-
getIssuedAt
Description copied from interface:Payload
Get the value of the "iat" claim, or null if it's not available.- Specified by:
getIssuedAt
in interfacePayload
- Returns:
- the Issued At value or null.
-
getId
Description copied from interface:Payload
Get the value of the "jti" claim, or null if it's not available. -
getClaim
Description copied from interface:Payload
Get a Claim given it's name. If the Claim wasn't specified in the Payload, a NullClaim will be returned. -
getClaims
Description copied from interface:Payload
Get the Claims defined in the Token.
-