pub struct AgentKeyManagerBuilder { /* private fields */ }Expand description
A builder for AgentKeyManager
Implementations§
Source§impl AgentKeyManagerBuilder
impl AgentKeyManagerBuilder
Sourcepub fn load_from_default_storage(self) -> Self
pub fn load_from_default_storage(self) -> Self
Load keys from default storage location
Sourcepub fn load_from_path(self, path: PathBuf) -> Self
pub fn load_from_path(self, path: PathBuf) -> Self
Load keys from a specific storage path
Sourcepub fn add_secret(self, did: String, secret: Secret) -> Self
pub fn add_secret(self, did: String, secret: Secret) -> Self
Add a legacy secret
Sourcepub fn add_signing_key(self, key: Arc<dyn SigningKey + Send + Sync>) -> Self
pub fn add_signing_key(self, key: Arc<dyn SigningKey + Send + Sync>) -> Self
Add a signing key
Sourcepub fn add_encryption_key(
self,
key: Arc<dyn EncryptionKey + Send + Sync>,
) -> Self
pub fn add_encryption_key( self, key: Arc<dyn EncryptionKey + Send + Sync>, ) -> Self
Add an encryption key
Sourcepub fn add_decryption_key(
self,
key: Arc<dyn DecryptionKey + Send + Sync>,
) -> Self
pub fn add_decryption_key( self, key: Arc<dyn DecryptionKey + Send + Sync>, ) -> Self
Add a decryption key
Sourcepub fn add_verification_key(
self,
key: Arc<dyn VerificationKey + Send + Sync>,
) -> Self
pub fn add_verification_key( self, key: Arc<dyn VerificationKey + Send + Sync>, ) -> Self
Add a verification key
Sourcepub fn build(self) -> Result<AgentKeyManager>
pub fn build(self) -> Result<AgentKeyManager>
Build the KeyManager
Trait Implementations§
Source§impl Clone for AgentKeyManagerBuilder
impl Clone for AgentKeyManagerBuilder
Source§fn clone(&self) -> AgentKeyManagerBuilder
fn clone(&self) -> AgentKeyManagerBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentKeyManagerBuilder
impl Debug for AgentKeyManagerBuilder
Auto Trait Implementations§
impl Freeze for AgentKeyManagerBuilder
impl !RefUnwindSafe for AgentKeyManagerBuilder
impl Send for AgentKeyManagerBuilder
impl Sync for AgentKeyManagerBuilder
impl Unpin for AgentKeyManagerBuilder
impl UnsafeUnpin for AgentKeyManagerBuilder
impl !UnwindSafe for AgentKeyManagerBuilder
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