Skip to main content

ClientAuthenticationSession

Trait ClientAuthenticationSession 

Source
pub trait ClientAuthenticationSession {
    type Evidence;
    type Error;

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

Mutable authentication policy state owned by one connection attempt.

Required Associated Types§

Source

type Evidence

Typed identity evidence produced after server confirmation.

Source

type Error

Application authentication failure.

Required Methods§

Source

fn respond( &mut self, challenge: ClientAuthenticationChallenge, ) -> ClientAuthenticationFuture<'_, ClientAuthenticationResponse, Self::Error>

Answers one server authentication challenge.

Source

fn authenticated( self, ) -> ClientAuthenticationFuture<'static, Self::Evidence, Self::Error>

Produces identity evidence after AuthenticationOk was received.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§