pub struct EnclaveConfig {
pub app_name: String,
pub default_key_label: String,
pub access_policy: Option<AccessPolicy>,
pub keys_dir: Option<PathBuf>,
pub platform: PlatformConfig,
}Expand description
Configuration for all enclave handles created via factory functions.
Fields§
§app_name: StringRequested app identifier. The -unsigned suffix is applied automatically
for unsigned binaries to prevent key namespace collisions.
default_key_label: StringDefault key label for factory-initialized keys.
access_policy: Option<AccessPolicy>Default access policy for new keys. When None, the factory picks AccessPolicy::None for signed binaries and AccessPolicy::Any for unsigned.
keys_dir: Option<PathBuf>Override key storage directory (default: platform default).
platform: PlatformConfigPlatform-specific overrides.
Implementations§
Source§impl EnclaveConfig
impl EnclaveConfig
Sourcepub fn new(
app_name: impl Into<String>,
default_key_label: impl Into<String>,
) -> Self
pub fn new( app_name: impl Into<String>, default_key_label: impl Into<String>, ) -> Self
Create a config with sensible defaults. The binary’s signing state is detected
automatically; unsigned binaries get -unsigned appended to app_name.
Sourcepub fn effective_app_name(&self) -> String
pub fn effective_app_name(&self) -> String
Resolved effective app name (with -unsigned applied if needed).
Sourcepub fn resolved_access_policy(&self) -> AccessPolicy
pub fn resolved_access_policy(&self) -> AccessPolicy
Resolved access policy: explicit override, or signed->None / unsigned->Any.
Trait Implementations§
Source§impl Clone for EnclaveConfig
impl Clone for EnclaveConfig
Source§fn clone(&self) -> EnclaveConfig
fn clone(&self) -> EnclaveConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more