Class JsonWebToken
- java.lang.Object
-
- com.google.api.client.json.webtoken.JsonWebToken
-
- Direct Known Subclasses:
JsonWebSignature
public class JsonWebToken extends Object
JSON Web Token (JWT).Implementation is not thread-safe.
- Since:
- 1.14 (since 1.7 as com.google.api.client.auth.jsontoken.JsonWebToken)
- Author:
- Yaniv Inbar
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonWebToken.Header
Header as specified in JWT Header.static class
JsonWebToken.Payload
Payload as specified in Reserved Claim Names.
-
Constructor Summary
Constructors Constructor Description JsonWebToken(JsonWebToken.Header header, JsonWebToken.Payload payload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonWebToken.Header
getHeader()
Returns the header.JsonWebToken.Payload
getPayload()
Returns the payload.String
toString()
-
-
-
Constructor Detail
-
JsonWebToken
public JsonWebToken(JsonWebToken.Header header, JsonWebToken.Payload payload)
- Parameters:
header
- headerpayload
- payload
-
-
Method Detail
-
getHeader
public JsonWebToken.Header getHeader()
Returns the header.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getPayload
public JsonWebToken.Payload getPayload()
Returns the payload.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
-