pub struct WitnessConfig {
pub check_hardware: bool,
pub check_clock: bool,
pub check_state_files: bool,
pub detect_virtualization: bool,
pub detect_containers: bool,
pub clock_tolerance: Duration,
pub state_integrity_key: Option<[u8; 32]>,
pub hardware_environment: Arc<dyn HardwareEnvironment>,
}Expand description
Configuration for the security witness
Fields§
§check_hardware: boolCheck hardware binding
check_clock: boolCheck clock consistency (requires Self::state_integrity_key when true)
check_state_files: boolCheck state files (requires Self::state_integrity_key when true)
detect_virtualization: boolDetect virtualization
detect_containers: boolDetect containers
clock_tolerance: DurationTolerance for clock drift detection
state_integrity_key: Option<[u8; 32]>HMAC key for LicenseState at rest; required when check_clock or check_state_files is true.
hardware_environment: Arc<dyn HardwareEnvironment>Source of crate::hardware::HardwareInfo for binding attestation (default: OS probe).
Trait Implementations§
Source§impl Clone for WitnessConfig
impl Clone for WitnessConfig
Source§fn clone(&self) -> WitnessConfig
fn clone(&self) -> WitnessConfig
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 WitnessConfig
impl Debug for WitnessConfig
Auto Trait Implementations§
impl Freeze for WitnessConfig
impl !RefUnwindSafe for WitnessConfig
impl Send for WitnessConfig
impl Sync for WitnessConfig
impl Unpin for WitnessConfig
impl UnsafeUnpin for WitnessConfig
impl !UnwindSafe for WitnessConfig
Blanket Implementations§
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