Trait flv_tls_proxy::authenticator::Authenticator
source · pub trait Authenticator: Send + Sync {
// Required method
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 Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
Abstracts logic to authenticate incoming stream and forward authoization context to target