Skip to main content

SignAuthorizer

Trait SignAuthorizer 

Source
pub trait SignAuthorizer: Send + Sync {
    // Required method
    fn authorize_sign(&self, peer: &PeerIdentity) -> bool;
}
Expand description

Decides whether a connected peer may make the agent sign right now.

Connection-level UID authorization (same user only) is enforced separately. This is the per-request gate that lets the host require approval — e.g. a per-caller biometric — before each signature, so an unlocked agent does not grant silent signing to every same-user process.

Required Methods§

Source

fn authorize_sign(&self, peer: &PeerIdentity) -> bool

Returns true iff peer is allowed to obtain a signature now.

Args:

  • peer: the connecting process’s identity.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§