Durable
A store over a medium that outlives the process. Each open is a restart: a new store over the same medium, sharing no memory with the stores opened before it.
Each damage hook leaves the medium as that failure would, with no store open.
Parameters
opens a new store over this fixture's medium, passing it beforeKeyIsMade.
makes the stored key unreadable: truncated, or bytes that are not a key at all.
stores a key that decodes, but whose private half does not sign for the name it carries, and returns that name. A store that cannot represent such a pair at all (a key the platform holds as one object) still owes this property: it needs a two-armed fixture here, reasoned in its own KDoc, never a stub that plants nothing.
removes the stored key, leaving the grants.
leaves what a crash part-way through writing a new key would leave, over whatever key is held now, and says whether the medium can leave anything; see KeyWriteInterruption.
makes the stored grants unreadable, leaving the key.
puts the held key out of the store's reach without damaging it — a permission it lacks, a file system loop, a Keychain locked before first unlock — and says how to put it back; see UnreadableKey.
puts the stored grants record out of the store's reach without damaging it — a file the process may not open, as an iPhone's grants file is after a restart until the first unlock — while the medium still takes a new record, and says how to probe and undo it; see UnreadableGrants.
Constructors
Properties
Functions
Opens a store over this fixture's medium; see DeviceKeyStoreFixture for beforeKeyIsMade.