JwtClaim class

Constructors

JwtClaim({String? issuer, String? subject, List<String>? audience, DateTime? expiry, DateTime? notBefore, DateTime? issuedAt, String? jwtId, Map<String, dynamic>? otherClaims, Map<String, dynamic>? payload, bool defaultIatExp = true, Duration? maxAge})
JwtClaim.fromMap(Map data, {bool defaultIatExp = true, Duration? maxAge})
factory

Properties

audience List<String>?
getter/setter pair
expiry DateTime?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
issuedAt DateTime?
getter/setter pair
issuer String?
getter/setter pair
jwtId String?
getter/setter pair
notBefore DateTime?
getter/setter pair
payload Map<String, dynamic>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subject String?
getter/setter pair

Methods

claimNames({bool includeRegisteredClaims = true}) Iterable<String>
containsKey(String claimName) bool
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.
override
validate({String? issuer, String? audience, Duration? allowedClockSkew, DateTime? currentTime}) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String claimName) → dynamic

Constants

defaultMaxAge → const Duration
registeredClaimNames → const List<String>