Class JsonWebToken (1.45.2)

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
Name Description
header JsonWebToken.Header

header

payload JsonWebToken.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
Type Description
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
Type Description
JsonWebToken.Payload

toString()

public String toString()
Returns
Type Description
String
Overrides