pub struct ProxyAuthorization { /* private fields */ }Expand description
Per-instance loopback proxy capability.
Implementations§
Source§impl ProxyAuthorization
impl ProxyAuthorization
Sourcepub fn from_capability(realm_nonce: [u8; 16], capability: [u8; 32]) -> Self
pub fn from_capability(realm_nonce: [u8; 16], capability: [u8; 32]) -> Self
Derive fixed-size Basic credentials from platform-generated random nonce and capability bytes.
Complete Basic authorization header value for the browser callback.
Sourcepub fn challenge_header_value(&self) -> String
pub fn challenge_header_value(&self) -> String
Complete challenge header value.
Sourcepub fn verify_header_values<'a>(
&self,
values: impl IntoIterator<Item = &'a str>,
) -> bool
pub fn verify_header_values<'a>( &self, values: impl IntoIterator<Item = &'a str>, ) -> bool
Verify exactly one Basic header using a fixed-width constant-time capability comparison.
Sourcepub fn matches_challenge(
&self,
endpoint: LoopbackEndpoint,
host: &str,
port: u16,
realm: &str,
) -> bool
pub fn matches_challenge( &self, endpoint: LoopbackEndpoint, host: &str, port: u16, realm: &str, ) -> bool
Match a browser authentication challenge only to the exact configured numeric loopback endpoint and realm.
Trait Implementations§
Source§impl Debug for ProxyAuthorization
impl Debug for ProxyAuthorization
Source§impl Drop for ProxyAuthorization
impl Drop for ProxyAuthorization
Auto Trait Implementations§
impl Freeze for ProxyAuthorization
impl RefUnwindSafe for ProxyAuthorization
impl Send for ProxyAuthorization
impl Sync for ProxyAuthorization
impl Unpin for ProxyAuthorization
impl UnsafeUnpin for ProxyAuthorization
impl UnwindSafe for ProxyAuthorization
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