pub struct HttpsHandler { /* private fields */ }Expand description
A TransportHandler for a single HTTPS exchange.
Constructed per-request on the server (local = the server’s own VID,
peer = the bearer-authenticated sender) and per-instance on the
client (local = the client’s own VID, peer = the configured server
VID).
Either side can be None:
local = None— the consumer chooses not to assert its identity to the framework’s audience-binding rules. Allowed for transports that handle recipient-identity out-of-band.peer = None— the transport authenticated nothing (no bearer header, or an unrecognised token). The framework then falls back entirely to the document’s in-bandissuerplus anyproofit carries — which, with noproof, means the “issuer” is an unverified string the sender chose.HttpsServerrefuses that combination by default; seeHttpsServerBuilder::require_attribution.
Implementations§
Trait Implementations§
Source§impl Clone for HttpsHandler
impl Clone for HttpsHandler
Source§impl Debug for HttpsHandler
impl Debug for HttpsHandler
Source§impl TransportHandler for HttpsHandler
impl TransportHandler for HttpsHandler
Source§fn binding_uri(&self) -> &str
fn binding_uri(&self) -> &str
A stable identifier for this transport binding, suitable for logs and
audit (SPEC.md §9.1, §9.2 — “A transport binding specification
SHOULD identify itself by a stable URI”).
Source§fn derive_parties(&self) -> TransportContext
fn derive_parties(&self) -> TransportContext
Identities the transport authenticated for the inbound message under
consideration. Read more
Source§fn prepare_outbound<P>(&self, _doc: &mut TrustTask<P>)where
P: Serialize,
fn prepare_outbound<P>(&self, _doc: &mut TrustTask<P>)where
P: Serialize,
Prepare an outbound document for emission over this transport. Read more
Source§fn resolve_parties<P>(
&self,
doc: &TrustTask<P>,
) -> Result<ResolvedParties, ConsistencyError>
fn resolve_parties<P>( &self, doc: &TrustTask<P>, ) -> Result<ResolvedParties, ConsistencyError>
Apply SPEC.md §4.8.1 precedence to produce the final
ResolvedParties for an inbound document. Read moreSource§fn reject<P>(
&self,
doc: &TrustTask<P>,
id: impl Into<String>,
reason: RejectReason,
) -> Option<TrustTask<ErrorPayload>>
fn reject<P>( &self, doc: &TrustTask<P>, id: impl Into<String>, reason: RejectReason, ) -> Option<TrustTask<ErrorPayload>>
Build a
trust-task-error response for doc that satisfies the
SPEC.md §8.1 routing rules — most importantly, the rule that under
RejectReason::IdentityMismatch the error MUST address the
transport-authenticated sender and MUST NOT address the contested
in-band issuer. Read moreAuto Trait Implementations§
impl Forget for HttpsHandler
impl Freeze for HttpsHandler
impl Move for HttpsHandler
impl RefUnwindSafe for HttpsHandler
impl Send for HttpsHandler
impl Sync for HttpsHandler
impl Unpin for HttpsHandler
impl UnsafeUnpin for HttpsHandler
impl UnwindSafe for HttpsHandler
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