pub struct ConnectionIdentity {
pub name: String,
pub certificate_hash: Option<String>,
pub credential: Option<String>,
}Expand description
What the gateway knows about a connection at the moment it must be routed.
Everything here comes from the client, so all of it is a claim. The one piece
that carries cryptographic weight is ConnectionIdentity::certificate_hash:
TLS proved possession of the matching private key. It still proves identity
and not authority - what a certificate is allowed to do is the router’s
business, not the gateway’s.
Fields§
§name: StringThe name the client proposed. A suggestion: the server is authoritative on what a user is finally called (spec 10.5).
certificate_hash: Option<String>Lowercase SHA-1 of the client certificate, as Murmur presents it.
credential: Option<String>The Authenticate.password field, treated as an opaque credential. This
is where a token flow plugs in.
Trait Implementations§
Source§impl Clone for ConnectionIdentity
impl Clone for ConnectionIdentity
Source§fn clone(&self) -> ConnectionIdentity
fn clone(&self) -> ConnectionIdentity
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 moreAuto Trait Implementations§
impl Freeze for ConnectionIdentity
impl RefUnwindSafe for ConnectionIdentity
impl Send for ConnectionIdentity
impl Sync for ConnectionIdentity
impl Unpin for ConnectionIdentity
impl UnwindSafe for ConnectionIdentity
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