JsonWebToken class abstract
The base class for all JWTs in the S3I.
From the RFC 7519:
JSON Web Token (JWT) is a compact, URL-safe means of representing claims to be transferred between two parties.
Currently there are two different token types supported by the S3I-IdentityProvider: AccessToken and RefreshToken. For more information see OpenID Connect.
- Implementers
Constructors
- JsonWebToken.new(String originalToken)
- Creates a new JsonWebToken.
Properties
-
decodedPayload
↔ Map<
String, dynamic> -
The payload information stored in originalToken for easy access.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- originalToken → String
-
The complete original token with header, payload and signature.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getExpirationDate(
) → DateTime - Returns the exact moment when the token expires or the start of the epoch if the expiration date could not be found.
-
isNotExpired(
{int timeBufferInSeconds = 0}) → bool - Returns true if the token is still valid.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
timeTillExpiration(
) → Duration - Returns the duration from now until the token expires.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited