Skip to main content

Authority

Trait Authority 

Source
pub trait Authority {
    // Required method
    fn authorizes(&self, origin: &CanonicalIdentity) -> bool;
}
Expand description

Local policy deciding which originating identities may be asserted.

Required Methods§

Source

fn authorizes(&self, origin: &CanonicalIdentity) -> bool

Whether this authentication service is authoritative for origin.

Implementors§

Source§

impl<F> Authority for F
where F: Fn(&CanonicalIdentity) -> bool,