pub struct AuthorizedClient {
pub id: String,
pub iv: String,
pub cookie: String,
}Expand description
Client authorized to access a v3 hidden service.
When a v3 hidden service uses client authorization, each authorized client has an entry in the descriptor’s outer layer containing encrypted credentials.
§Fields
id: Base64-encoded 8-byte client identifieriv: Base64-encoded 16-byte initialization vectorcookie: Base64-encoded 16-byte encrypted authentication cookie
§Security
The cookie is encrypted with the client’s private key. Only the authorized client can decrypt it to access the inner layer.
Fields§
§id: StringBase64-encoded client identifier (8 bytes).
iv: StringBase64-encoded initialization vector (16 bytes).
Base64-encoded encrypted authentication cookie (16 bytes).
Trait Implementations§
Source§impl Clone for AuthorizedClient
impl Clone for AuthorizedClient
Source§fn clone(&self) -> AuthorizedClient
fn clone(&self) -> AuthorizedClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthorizedClient
impl Debug for AuthorizedClient
Source§impl PartialEq for AuthorizedClient
impl PartialEq for AuthorizedClient
impl StructuralPartialEq for AuthorizedClient
Auto Trait Implementations§
impl Freeze for AuthorizedClient
impl RefUnwindSafe for AuthorizedClient
impl Send for AuthorizedClient
impl Sync for AuthorizedClient
impl Unpin for AuthorizedClient
impl UnwindSafe for AuthorizedClient
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