Interface KdfExecutionLimiter
- All Known Implementing Classes:
NoLimitKdfExecutionLimiter, SemaphoreKdfExecutionLimiter
public interface KdfExecutionLimiter
Bounds the number of KDF invocations that may run concurrently.
The limiter applies uniformly to the real and dummy verification
paths. Rejection is observable internally (as
VERIFICATION_REJECTED_KDF_LIMIT) but never as a separate
public signal — the verification pipeline maps it to the
generic INVALID_CREDENTIALS response (CWE-203, CWE-400).
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
acquire
Optional<KdfExecutionLimiter.Lease> acquire()Tries to acquire a KDF permit. Blocks up toKdfResourceBudget.maxWait()before giving up.- Returns:
- an
KdfExecutionLimiter.Leasethat must be released, orOptional.empty()when the limiter refused
-