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

Explicit key: try_publickey (offer) then publickey (sign). More...

#include <auth.hpp>

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

Public Member Functions

 PublicKey (Key private_key)
 
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
 

Static Public Member Functions

static Result< PublicKeyfrom_file (const std::filesystem::path &p, PassphraseCallback cb={})
 

Detailed Description

Explicit key: try_publickey (offer) then publickey (sign).

Constructor & Destructor Documentation

◆ PublicKey()

sshpp::auth::PublicKey::PublicKey ( Key  private_key)
inlineexplicit

Member Function Documentation

◆ from_file()

SSHPP_INLINE Result< PublicKey > sshpp::auth::PublicKey::from_file ( const std::filesystem::path &  p,
PassphraseCallback  cb = {} 
)
static

◆ name()

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

Implements sshpp::Authenticator.

◆ attempt()

SSHPP_INLINE Result< AuthStatus > sshpp::auth::PublicKey::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: