JWT class
- Inheritance
-
- Object
- HttpAuth
- BearerAuth
- JWT
Constructors
Properties
- alg → String?
-
no setter
- aud → String?
-
no setter
-
no setterinherited
- exp → DateTime?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
header
→ Map<
String, dynamic> -
final
- iat → DateTime?
-
no setter
- iss → String?
-
no setter
- kid → String?
-
no setter
-
payload
→ Map<
String, dynamic> -
final
- prefix → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signature → Uint8List
-
final
- sub → String?
-
no setter
- token → String
-
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
{String? issuer, String? audience, RSAPublicKey? publicKey}) → Future< void> - Verify a signed JWT.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromAuthorizationHeader(
String token, {String prefix = 'Bearer '}) → JWT? -
override
-
fromRequest(
ApiRequest request, {String prefix = 'Bearer '}) → JWT? -
override