Dependency-light builders for auth-engine tests. NO test-framework deps.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
jwt(
Map< String, Object?> claims) → String -
Builds an unsigned JWT (header.payload.signature) whose payload carries
claims. The signature is a fixed placeholder — the client only reads claims, never verifies here. -
registeredJwt(
ResourceKey key, {Map< String, Object?> extra = const <String, Object?>{}}) → String -
A JWT carrying the exact
<platform>_<service> = "true"registration claim forkey, plus anyextraclaims. -
resourceKey(
{String platform = 'lithium', String landscape = 'lapras', String service = 'api', String resourceName = 'root'}) → ResourceKey - A canonical example resource key.
-
resourceToken(
{required DateTime now, required String jwtToken, Duration ttl = TokenLifetimes.access}) → ResourceToken -
A ResourceToken valid for
ttlfromnow, carryingjwtToken. -
sessionTokens(
{required DateTime now, String accessToken = 'access', String refreshToken = 'refresh', String refreshFamily = 'family', Duration access = TokenLifetimes.access, Duration refresh = TokenLifetimes.refresh}) → SessionTokens -
A SessionTokens pair with family-standard lifetimes anchored at
now. -
unregisteredJwt(
ResourceKey key, {Map< String, Object?> extra = const <String, Object?>{}}) → String -
A JWT lacking the registration claim for
key.