pub struct MasterKeyManager { /* private fields */ }๐Deprecated:
Will be extracted to mockforge-workspace crate
Expand description
Master key manager for OS keychain integration
Manages the master encryption key using platform-specific secure storage:
- macOS: Keychain Services
- Linux: Secret Service API (libsecret)
- Windows: Credential Manager
Implementationsยง
Sourceยงimpl MasterKeyManager
impl MasterKeyManager
Sourcepub fn new() -> Self
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn new() -> Self
Will be extracted to mockforge-workspace crate
Create a new master key manager
Sourcepub fn generate_master_key(&self) -> Result<()>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn generate_master_key(&self) -> Result<()>
Will be extracted to mockforge-workspace crate
Generate and store a new master key in the OS keychain
Sourcepub fn get_master_key(&self) -> Result<EncryptionKey>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn get_master_key(&self) -> Result<EncryptionKey>
Will be extracted to mockforge-workspace crate
Retrieve the master key from OS keychain
Sourcepub fn has_master_key(&self) -> bool
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn has_master_key(&self) -> bool
Will be extracted to mockforge-workspace crate
Check if master key exists
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for MasterKeyManager
impl RefUnwindSafe for MasterKeyManager
impl Send for MasterKeyManager
impl Sync for MasterKeyManager
impl Unpin for MasterKeyManager
impl UnsafeUnpin for MasterKeyManager
impl UnwindSafe for MasterKeyManager
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
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more