Class WebAuthnStoreSnapshot
java.lang.Object
com.revetsec.webauthn.WebAuthnStoreSnapshot
Complete immutable authoritative read set, including explicit absences.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull WebAuthnStoreSnapshotfromEntries(@NonNull Set<@NonNull WebAuthnStoreKey> requestedKeys, @NonNull Map<@NonNull WebAuthnStoreKey, @NonNull WebAuthnStoreEntry> entries, @NonNull StoreTimeObservation timeObservation) Constructs a complete snapshot.Returns the exact immutable key-to-observation map.Returns the explicit observation for a requested key; an unrequested key is invalid.Returns the admission/time envelope observed coherently with every entry.toString()Redacts all keys and records.
-
Method Details
-
fromEntries
public static @NonNull WebAuthnStoreSnapshot fromEntries(@NonNull Set<@NonNull WebAuthnStoreKey> requestedKeys, @NonNull Map<@NonNull WebAuthnStoreKey, @NonNull WebAuthnStoreEntry> entries, @NonNull StoreTimeObservation timeObservation) Constructs a complete snapshot. The engine also compares its requested keys with the returned snapshot keys, so a provider cannot represent a missing read as absence by omission.- Parameters:
requestedKeys- the exact requested setentries- one explicit observation per requested keytimeObservation- the same coherent admission/time observation as the data- Returns:
- a complete immutable snapshot
- Since:
- 1.0.0
-
getEntries
Returns the exact immutable key-to-observation map.- Returns:
- every requested key and its observation
- Since:
- 1.0.0
-
getEntry
Returns the explicit observation for a requested key; an unrequested key is invalid.- Parameters:
key- the requested key- Returns:
- the authoritative observation
- Since:
- 1.0.0
-
getTimeObservation
Returns the admission/time envelope observed coherently with every entry.- Returns:
- the authoritative time status
- Since:
- 1.0.0
-
toString
-