public class JsonWebToken extends Object
Implementation is not thread-safe.
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonWebToken.Header
Header as specified in JWT Header.
|
static class |
JsonWebToken.Payload
Payload as specified in Reserved Claim
Names.
|
| Constructor and Description |
|---|
JsonWebToken(JsonWebToken.Header header,
JsonWebToken.Payload payload) |
| Modifier and Type | Method and Description |
|---|---|
JsonWebToken.Header |
getHeader()
Returns the header.
|
JsonWebToken.Payload |
getPayload()
Returns the payload.
|
public JsonWebToken(JsonWebToken.Header header, JsonWebToken.Payload payload)
header - headerpayload - payloadpublic JsonWebToken.Header getHeader()
Subclasses may override only to change the return type.
public JsonWebToken.Payload getPayload()
Subclasses may override only to change the return type.
Copyright © 2011-2012 Google. All Rights Reserved.