InMemoryAdvertisementKeyProvider class

In-memory key provider intended for tests and short-lived application data.

Keys are indexed by lowercase hexadecimal device-short IDs and defensively copied. Production secure-storage integration is deferred to a later phase.

Implemented types

Constructors

InMemoryAdvertisementKeyProvider(Map<String, List<int>> keys)
Creates a provider from hexadecimal device-short IDs to key bytes.

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

keyFor(Uint8List deviceIdShort) Future<Uint8List?>
Returns the key for deviceIdShort, or null when the device is unknown.
override
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