JsonWebToken constructor

const JsonWebToken({
  1. String? raw,
  2. required JsonWebHeader header,
  3. required JsonWebClaims claims,
  4. required List<int> signature,
})

A JSON Web Token (JWT) is a compact, URL-safe means of representing claims to be transferred between two parties.

The claims in a JWT are encoded as a JSON object that is used as the payload of a JSON Web Signature (JWS) structure or as the plaintext of a JSON Web Encryption (JWE) structure, enabling the claims to be digitally signed or integrity protected with a Message Authentication Code (MAC) and/or encrypted.

Implementation

const JsonWebToken({
  String? raw,
  required this.header,
  required this.claims,
  required this.signature,
}) : _raw = raw;