APISession class

An APIRoot session. Used by APISecurity.

Constructors

APISession(String id)

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
lastAccessElapsedTime Duration
no setter
lastAccessTime DateTime
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokens Set<APIToken>
no setter

Methods

getValidToken(String token) APIToken?
isExpired(Duration timeout, {DateTime? now}) bool
markAccessTime() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validateTokens() Set<APIToken>

Operators

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

Static Methods

generateSessionID({int length = 128, int variableLength = 32, String? prefix}) String