pub trait Authenticator: Send + Sync {
    fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        incoming_tls_stream: &'life1 DefaultServerTlsStream,
        target_tcp_stream: &'life2 TcpStream
    ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }
Expand description

Abstracts logic to authenticate incoming stream and forward authoization context to target

Required Methods

Implementors