EphemeralCredentialToken class

Ephemeral Credential Injection Handle that guarantees scoped exposure and automatic scrubbing.

Constructors

EphemeralCredentialToken({required String key, required String rawSecret, required CredentialScope scope, Duration ttl = const Duration(minutes: 5)})

Properties

hashCode → int
The hash code for this object.
no setterinherited
isExpired → bool
no setter
issuedAt → DateTime
final
key → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope → CredentialScope
final
ttl → Duration
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
withSecret<R>(R callback(String rawSecret)) → R
Retrieves the raw secret strictly within an isolated, bounded execution closure.

Operators

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