pub struct FsKeyStore { /* private fields */ }
Expand description
Filesystem-backed keystore.
Implementations§
source§impl FsKeyStore
impl FsKeyStore
sourcepub fn create_or_open(dir_path: &Path) -> Result<Self>
pub fn create_or_open(dir_path: &Path) -> Result<Self>
Attempt to open a filesystem-backed keystore at the given path, creating it if it doesn’t already exist.
sourcepub fn create(dir_path: &Path) -> Result<Self>
pub fn create(dir_path: &Path) -> Result<Self>
Create a filesystem-backed keystore at the given path, making a new directory and setting its file permissions.
sourcepub fn open(dir_path: &Path) -> Result<Self>
pub fn open(dir_path: &Path) -> Result<Self>
Initialize filesystem-backed keystore, opening the directory at the provided path and checking that it has the correct filesystem permissions.
sourcepub fn info(&self, name: &KeyName) -> Result<KeyInfo>
pub fn info(&self, name: &KeyName) -> Result<KeyInfo>
Get information about a key with the given name.
sourcepub fn import(
&self,
name: &KeyName,
key_ring: &mut KeyRing,
) -> Result<KeyHandle>
pub fn import( &self, name: &KeyName, key_ring: &mut KeyRing, ) -> Result<KeyHandle>
Import a key with a given name into the provided keyring.
sourcepub fn load(&self, name: &KeyName) -> Result<SecretDocument>
pub fn load(&self, name: &KeyName) -> Result<SecretDocument>
Load a PKCS#8 key from the keystore.
Auto Trait Implementations§
impl Freeze for FsKeyStore
impl RefUnwindSafe for FsKeyStore
impl Send for FsKeyStore
impl Sync for FsKeyStore
impl Unpin for FsKeyStore
impl UnwindSafe for FsKeyStore
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