JwtClaimsData class
Structured representation of JWT claims with standard fields and extra claims
Constructors
-
JwtClaimsData(Map<
String, dynamic> _rawClaims) -
Creates JWT claims data from raw claims map
const
Properties
-
allClaims
→ Map<
String, dynamic> -
Get all raw claims (for backward compatibility)
no setter
- audience → dynamic
-
Audience - identifies the recipients that the JWT is intended for
no setter
- expiration → DateTime?
-
Expiration time - identifies the expiration time on or after which the JWT must not be accepted
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isExpired → bool
-
Check if token is expired
no setter
- isNotYetValid → bool
-
Check if token is not yet valid (before nbf time)
no setter
- issuedAt → DateTime?
-
Issued at - identifies the time at which the JWT was issued
no setter
- issuer → String?
-
Issuer - identifies the principal that issued the JWT
no setter
- isValid → bool
-
Check if token is currently valid (not expired and not before nbf)
no setter
- jwtId → String?
-
JWT ID - provides a unique identifier for the JWT
no setter
- notBefore → DateTime?
-
Not before - identifies the time before which the JWT must not be accepted
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subject → String?
-
Subject - identifies the principal that is the subject of the JWT
no setter
Methods
-
getClaim<
T> (String key) → T? - Get a specific claim value by key
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited