001/* 002 * Copyright 2026 Revetware LLC. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017package com.revetsec.webauthn; 018 019/** Outcome of one atomic WebAuthn store write. Values describe facts inside a contextual receipt, not proof release eligibility. 020 * @since 1.0.0 */ 021@javax.annotation.concurrent.Immutable 022public enum WebAuthnStoreCommitResult { 023 /** All predicates matched and all changes committed to the selected store. Durability across 024 * restarts requires a durable implementation. */ 025 COMMITTED, 026 /** A predicate failed; no mutation took effect. */ 027 CONFLICT, 028 /** Capacity was insufficient; no mutation took effect. */ 029 CAPACITY, 030 /** The active authority, recovery or clock generation differs; no mutation took effect. */ 031 FENCED, 032 /** No healthy admitted time was available; no mutation took effect. */ 033 TIME_UNAVAILABLE, 034 /** Fresh validation time precedes the inclusive floor; no mutation took effect. */ 035 TIME_BEFORE_FLOOR, 036 /** Fresh validation time reached the exclusive expiry; no mutation took effect. */ 037 TIME_EXPIRED, 038 /** The store refused with known no effect, including a confirmed abort. */ 039 UNAVAILABLE, 040 /** The write may have taken effect; reconciliation is required. */ 041 UNKNOWN 042}