pub trait RevocationStore: Send {
// Required methods
fn is_revoked(
&self,
capability_id: &str,
) -> Result<bool, RevocationStoreError>;
fn revoke(
&mut self,
capability_id: &str,
) -> Result<bool, RevocationStoreError>;
}Expand description
Trait for checking whether a capability has been revoked.
Implementations may be in-memory, SQLite-backed, or subscribe to a distributed revocation feed via Spine/NATS.
Required Methods§
Sourcefn is_revoked(&self, capability_id: &str) -> Result<bool, RevocationStoreError>
fn is_revoked(&self, capability_id: &str) -> Result<bool, RevocationStoreError>
Check if a capability ID has been revoked.