libsshpp v0.1.7
Modern C++17 wrapper for libssh
Loading...
Searching...
No Matches
sshpp::auth::Chain Class Referencefinal

Tries each authenticator in order until one succeeds. More...

#include <auth.hpp>

Inheritance diagram for sshpp::auth::Chain:
[legend]
Collaboration diagram for sshpp::auth::Chain:
[legend]

Public Member Functions

Chainadd (std::shared_ptr< Authenticator > a)
 
template<class A , class... Args>
Chainemplace (Args &&... args)
 
std::string_view name () const noexcept override
 
Result< AuthStatusattempt (detail::SessionCore &) const noexcept override
 Performs one full attempt. Must not throw.
 
- Public Member Functions inherited from sshpp::Authenticator
virtual ~Authenticator ()=default
 

Detailed Description

Tries each authenticator in order until one succeeds.

Member Function Documentation

◆ add()

Chain & sshpp::auth::Chain::add ( std::shared_ptr< Authenticator a)
inline

◆ emplace()

template<class A , class... Args>
Chain & sshpp::auth::Chain::emplace ( Args &&...  args)
inline

◆ name()

std::string_view sshpp::auth::Chain::name ( ) const
inlineoverridevirtualnoexcept

Implements sshpp::Authenticator.

◆ attempt()

SSHPP_INLINE Result< AuthStatus > sshpp::auth::Chain::attempt ( detail::SessionCore ) const
overridevirtualnoexcept

Performs one full attempt. Must not throw.

Implements sshpp::Authenticator.


The documentation for this class was generated from the following files: