Struct thrussh_keys::agent::client::AgentClient [−][src]
pub struct AgentClient<S: AsyncRead + AsyncWrite> { /* fields omitted */ }
Expand description
SSH agent client.
Implementations
Build a future that connects to an SSH agent via the provided stream (on Unix, usually a Unix-domain socket).
Build a future that connects to an SSH agent via the provided stream (on Unix, usually a Unix-domain socket).
pub async fn add_identity(
&mut self,
key: &KeyPair,
constraints: &[Constraint]
) -> Result<(), Error>
pub async fn add_identity(
&mut self,
key: &KeyPair,
constraints: &[Constraint]
) -> Result<(), Error>
Send a key to the agent, with a (possibly empty) slice of constraints to apply when using the key to sign.
Add a smart card to the agent, with a (possibly empty) set of constraints to apply when signing.
Lock the agent, making it refuse to sign until unlocked.
Unlock the agent, allowing it to sign again.
Ask the agent for a list of the currently registered secret keys.
Ask the agent to sign the supplied piece of data.
Ask the agent to sign the supplied piece of data.
Ask the agent to sign the supplied piece of data, and return a Signature
.
Ask the agent to remove a key from its memory.
Ask the agent to remove a smartcard from its memory.
Ask the agent to forget all known keys.
Send a custom message to the agent.
Auto Trait Implementations
impl<S> RefUnwindSafe for AgentClient<S> where
S: RefUnwindSafe,
impl<S> Send for AgentClient<S> where
S: Send,
impl<S> Sync for AgentClient<S> where
S: Sync,
impl<S> Unpin for AgentClient<S> where
S: Unpin,
impl<S> UnwindSafe for AgentClient<S> where
S: UnwindSafe,