AccessToken class
Represents an Access Token
from OAuth2.0/OpenID Connect.
Used to grant access to protected resources like the S3I-Directory.
- Inheritance
-
- Object
- JsonWebToken
- AccessToken
Constructors
- AccessToken.new(String originalToken)
- Creates a new AccessToken from the given string.
Properties
-
decodedPayload
↔ Map<
String, dynamic> -
The payload information stored in originalToken for easy access.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- originalToken → String
-
The complete original token with header, payload and signature.
finalinherited
- 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.
override
-
isNotExpired(
{int timeBufferInSeconds = 0}) → bool -
Returns true if the token is still valid.
inherited
-
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.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited