Class JsonWebToken

public class JsonWebToken

JSON Web Token (JWT).

Implementation is not thread-safe.

Inheritance

java.lang.Object > JsonWebToken

Constructors

JsonWebToken(JsonWebToken.Header header, JsonWebToken.Payload payload)

public JsonWebToken(JsonWebToken.Header header, JsonWebToken.Payload payload)
Parameters
NameDescription
headerJsonWebToken.Header

header

payloadJsonWebToken.Payload

payload

Methods

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.

Returns
TypeDescription
JsonWebToken.Header

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.

Returns
TypeDescription
JsonWebToken.Payload

toString()

public String toString()
Returns
TypeDescription
String
Overrides