JsonWebToken class

Represents a JWT

Constructors

JsonWebToken.unverified(String serialization)
Decodes a JWT string from a JWS compact serialization, without verifying the integrity

Properties

claims JsonWebTokenClaims
The claims conveyed by the JsonWebToken
final
hashCode int
The hash code for this object.
no setterinherited
isVerified bool?
Returns true if this JWT has been successfully verified, false if verification failed and null if no verification attempt has been made
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCompactSerialization() String
Serializes the JsonWebToken to a string
toString() String
A string representation of this object.
inherited
verify(JsonWebKeyStore keyStore, {List<String>? allowedArguments}) Future<bool>
Attempts to verify this JWT

Operators

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

Static Methods

decodeAndVerify(String serialization, JsonWebKeyStore keyStore, {List<String>? allowedArguments}) Future<JsonWebToken>
Decodes and verifies/decrypts a JWT string from a JWE or JWS compact serialization