class Poco::Net::FTPPasswordProvider

Overview

The base class for all password providers. Moreā€¦

#include <FTPStreamFactory.h>

class FTPPasswordProvider
{
public:
    // methods

    virtual
    std::string
    password(
        const std::string& username,
        const std::string& host
        ) = 0;
};

Detailed Documentation

The base class for all password providers.

An instance of a subclass of this class can be registered with the FTPStreamFactory to provide a password

Methods

virtual
std::string
password(
    const std::string& username,
    const std::string& host
    ) = 0

Provide the password for the given user on the given host.