Table of Contents

Class JwtData

Namespace
JWT.Builder
Assembly
Coherence.JWT.dll

Represents the Data that will store in a JWT.

public class JwtData
Inheritance
JwtData

Constructors

JwtData()

Creates a new instance of JwtData with empty Header and Payload.

public JwtData()

JwtData(IDictionary<string, object>)

Creates a new instance of JwtData

public JwtData(IDictionary<string, object> payload)

Parameters

payload IDictionary<string, object>

Dictionary that contains the payload

JwtData(IDictionary<string, object>, IDictionary<string, object>)

Creates a new instance of JwtData

public JwtData(IDictionary<string, object> header, IDictionary<string, object> payload)

Parameters

header IDictionary<string, object>

Dictionary that contains the headers

payload IDictionary<string, object>

Dictionary that contains the payload

JwtData(string)

Creates a new instance of JwtData

public JwtData(string token)

Parameters

token string

The JWT token

Properties

Header

The header information as a key-value store of the JWT

public IDictionary<string, object> Header { get; }

Property Value

IDictionary<string, object>

Payload

The payload of the JWT as a key-value store

public IDictionary<string, object> Payload { get; }

Property Value

IDictionary<string, object>