pub struct AirGappedConfig {
pub max_signature_age: Option<Duration>,
pub check_revocations: bool,
pub max_chain_depth: u8,
pub identity_requirements: Option<IdentityRequirements>,
pub grace_period_behavior: GracePeriodBehavior,
pub enforce_rollback_protection: bool,
}Expand description
Configuration for air-gapped verification
Fields§
§max_signature_age: Option<Duration>Maximum signature age in seconds
Signatures older than this are rejected even if otherwise valid.
None means no maximum age (trust bundle validity is the limit).
check_revocations: boolWhether to check the revocation list
max_chain_depth: u8Maximum certificate chain depth
identity_requirements: Option<IdentityRequirements>Required identity patterns (optional)
grace_period_behavior: GracePeriodBehaviorHow to handle expired trust bundles
enforce_rollback_protection: boolWhether to enforce anti-rollback protection
When true, bundle version must be >= stored device state version. Requires persistent storage for device state.
Implementations§
Source§impl AirGappedConfig
impl AirGappedConfig
Sourcepub fn fully_airgapped() -> Self
pub fn fully_airgapped() -> Self
Create config for fully air-gapped devices (no time source)
Sourcepub fn intermittent() -> Self
pub fn intermittent() -> Self
Create config for intermittently connected devices
Sourcepub fn high_security() -> Self
pub fn high_security() -> Self
Create config for high-security environments
Sourcepub fn with_max_age(self, age: Duration) -> Self
pub fn with_max_age(self, age: Duration) -> Self
Set maximum signature age
Sourcepub fn with_identity_requirements(
self,
requirements: IdentityRequirements,
) -> Self
pub fn with_identity_requirements( self, requirements: IdentityRequirements, ) -> Self
Set identity requirements
Sourcepub fn with_rollback_protection(self) -> Self
pub fn with_rollback_protection(self) -> Self
Enable rollback protection
Trait Implementations§
Source§impl Clone for AirGappedConfig
impl Clone for AirGappedConfig
Source§fn clone(&self) -> AirGappedConfig
fn clone(&self) -> AirGappedConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AirGappedConfig
impl Debug for AirGappedConfig
Auto Trait Implementations§
impl Freeze for AirGappedConfig
impl RefUnwindSafe for AirGappedConfig
impl Send for AirGappedConfig
impl Sync for AirGappedConfig
impl Unpin for AirGappedConfig
impl UnwindSafe for AirGappedConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more