Class WebAuthnStoreWrite
java.lang.Object
com.revetsec.webauthn.WebAuthnStoreWrite
One immutable atomic compare-and-commit request. The complete snapshot is the predicate set:
every observed version and every confirmed absence must still match. New versions must be
unique across updates to prevent ABA. A condition-only write still checks the whole snapshot.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA typed insertion, replacement or deletion of a key from the read set. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull WebAuthnStoreWritefromSnapshotAndMutations(@NonNull WebAuthnStoreSnapshot snapshot, @NonNull List<@NonNull WebAuthnStoreWrite.Mutation> mutations, @NonNull StoreTemporalCondition temporalCondition) Combines an exact snapshot with at most eight distinct mutations of its keys.Returns the immutable ordered mutation set.Returns every exact version or absence predicate.Returns the original admitted temporal predicate.toString()Redacts predicates and mutations.
-
Method Details
-
fromSnapshotAndMutations
public static @NonNull WebAuthnStoreWrite fromSnapshotAndMutations(@NonNull WebAuthnStoreSnapshot snapshot, @NonNull List<@NonNull WebAuthnStoreWrite.Mutation> mutations, @NonNull StoreTemporalCondition temporalCondition) Combines an exact snapshot with at most eight distinct mutations of its keys. Insertion requires confirmed absence; replacement and deletion require a present version.- Parameters:
snapshot- the complete predicate setmutations- the bounded change set, possibly emptytemporalCondition- engine-created inclusive floor and optional exclusive expiry- Returns:
- a validated atomic request
- Since:
- 1.0.0
-
getSnapshot
Returns every exact version or absence predicate.- Returns:
- the read set
- Since:
- 1.0.0
-
getMutations
Returns the immutable ordered mutation set.- Returns:
- the mutations
- Since:
- 1.0.0
-
getTemporalCondition
Returns the original admitted temporal predicate.- Returns:
- the inclusive floor and optional exclusive expiry
- Since:
- 1.0.0
-
toString
-