1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! Enterprise security for quantum cloud operations.
//!
//! Provides structured audit logging, credential management, and token-bucket
//! rate limiting for production quantum computing workloads, as well as a
//! comprehensive Quantum System Security Framework.
//!
//! ## Modules
//!
//! - [`audit`] — Structured JSON audit log trail (file, in-memory, null sinks)
//! - [`credentials`] — Credential abstraction with env-var, file, and composite providers
//! - [`rate_limit`] — Per-provider token-bucket rate limiter
//! - [`config`] — Security configuration types for the full framework
//! - [`engines`] — Security engine and result types
//! - [`framework`] — Main `QuantumSystemSecurityFramework` implementation
//! - [`types`] — Security enums and shared types
//!
//! ## Quick start
//!
//! ```rust
//! use quantrs2_device::security::{
//! InMemoryAuditLogger, AuditLogger, AuditEvent, OperationType,
//! EnvVarCredentialProvider, CredentialProvider,
//! RateLimiter,
//! };
//!
//! // Audit logging
//! let logger = InMemoryAuditLogger::new();
//! let event = AuditEvent::new(OperationType::CircuitSubmit, true)
//! .with_backend("ibm_nairobi")
//! .with_duration_ms(120);
//! logger.log(event).expect("audit log failed");
//!
//! // Rate limiting
//! let mut limiter = RateLimiter::with_cloud_defaults();
//! if limiter.try_consume("ibm") {
//! // proceed with API call
//! }
//! ```
pub use ;
pub use *;
pub use ;
pub use *;
pub use *;
pub use ;
pub use *;