pub mod sandbox;
pub mod encryption;
pub use sandbox::*;
pub use encryption::*;
use anyhow::Result;
use serde::{Deserialize, Serialize};
use std::collections::{HashMap, BTreeMap};
#[derive(Debug)]
pub struct SecurityModule {
pub sandbox: SecuritySandbox,
pub kms: KeyManagementService,
}
impl SecurityModule {
pub fn new(
sandbox_config: SandboxConfig,
encryption_config: EncryptionConfig,
) -> Result<Self> {
let sandbox: _ = SecuritySandbox::new(sandbox_config)?;
let kms: _ = KeyManagementService::new(encryption_config);
Ok(Self {
sandbox,
kms,
})
}
}