JwtHeader class

JWT Header structure

Constructors

JwtHeader({required String algorithm, String? keyId, String? type})
const
JwtHeader.fromJson(Map<String, dynamic> json)
factory

Properties

algorithm → String
Algorithm used to sign the JWT (e.g., 'RS256', 'ES256', 'HS256')
final
hashCode → int
The hash code for this object.
no setterinherited
keyId → String?
Key ID - identifies which key was used to sign the JWT
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String?
Token type - typically 'JWT'
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited