pub trait AuthExt: 'static {
Show 23 methods
fn authenticate(&self, username: &str, password: &str);
fn can_authenticate(&self) -> bool;
fn cancel(&self);
fn authority(&self) -> Option<GString>;
fn authorization(&self, msg: &Message) -> Option<GString>;
fn info(&self) -> Option<GString>;
fn protection_space(&self, source_uri: &Uri) -> Vec<GString>;
fn realm(&self) -> Option<GString>;
fn scheme_name(&self) -> Option<GString>;
fn is_authenticated(&self) -> bool;
fn is_cancelled(&self) -> bool;
fn is_for_proxy(&self) -> bool;
fn is_ready(&self, msg: &Message) -> bool;
fn update(&self, msg: &Message, auth_header: &str) -> bool;
fn set_authority(&self, authority: Option<&str>);
fn set_is_for_proxy(&self, is_for_proxy: bool);
fn set_realm(&self, realm: Option<&str>);
fn connect_authority_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_is_authenticated_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_is_cancelled_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_is_for_proxy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_realm_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_scheme_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}