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.
|
String |
toString() |
public JsonWebToken(JsonWebToken.Header header, JsonWebToken.Payload payload)
header
- headerpayload
- payloadpublic JsonWebToken.Header getHeader()
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public JsonWebToken.Payload getPayload()
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
Copyright © 2011–2019 Google. All rights reserved.