Skip to main content

ClientAuthenticationSession

Trait ClientAuthenticationSession 

Source
pub trait ClientAuthenticationSession {
    type Evidence;
    type Error;

    // Required methods
    async fn respond(
        &mut self,
        challenge: ClientAuthenticationChallenge,
    ) -> Result<ClientAuthenticationResponse, Self::Error>;
    async fn authenticated(self) -> Result<Self::Evidence, Self::Error>;
}
Expand description

Mutable authentication policy state owned by one connection attempt.

Authentication futures are not required to be Send.

Required Associated Types§

Source

type Evidence

Typed identity evidence produced after server confirmation.

Source

type Error

Application authentication failure.

Required Methods§

Source

async fn respond( &mut self, challenge: ClientAuthenticationChallenge, ) -> Result<ClientAuthenticationResponse, Self::Error>

Answers one server authentication challenge.

Source

async fn authenticated(self) -> Result<Self::Evidence, Self::Error>

Produces identity evidence after AuthenticationOk was received.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§