public class JsonWebToken extends Object
Implementation is not thread-safe.
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonWebToken
Header as specified in
JWT Header.
|
static class |
JsonWebToken
Payload as specified in
Reserved Claim Names.
|
| Constructor and Description |
|---|
JsonWebToken(JsonWebToken
|
| Modifier and Type | Method and Description |
|---|---|
JsonWebToken |
getHeader()
Returns the header.
|
JsonWebToken |
getPayload()
Returns the payload.
|
String |
toString()
|
public JsonWebToken(JsonWebToken.Header header, JsonWebToken .Payload payload)
header - header
payload - payload
public StringtoString()
public 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.