proxygen
|
#include <PasswordInFile.h>
Public Member Functions | |
PasswordInFile (const std::string &file) | |
~PasswordInFile () override | |
void | getPassword (std::string &password, int) const override |
const char * | getPasswordStr () const |
std::string | describe () const override |
Public Member Functions inherited from folly::PasswordCollector | |
virtual | ~PasswordCollector ()=default |
Protected Attributes | |
std::string | fileName_ |
std::string | password_ |
Definition at line 22 of file PasswordInFile.h.
|
explicit |
Definition at line 24 of file PasswordInFile.cpp.
References password_, and folly::readFile().
|
override |
|
inlineoverridevirtual |
Return a description of this collector for logging purposes
Implements folly::PasswordCollector.
Definition at line 35 of file PasswordInFile.h.
References fileName_.
|
inlineoverridevirtual |
Interface for customizing how to collect private key password.
By default, OpenSSL prints a prompt on screen and request for password while loading private key. To implement a custom password collector, implement this interface and register it with SSLContext.
password | Pass collected password back to OpenSSL |
size | Maximum length of password including nullptr character |
Implements folly::PasswordCollector.
Definition at line 27 of file PasswordInFile.h.
References password_.
|
inline |
|
protected |
Definition at line 40 of file PasswordInFile.h.
Referenced by describe().
|
protected |
Definition at line 41 of file PasswordInFile.h.
Referenced by getPassword(), getPasswordStr(), PasswordInFile(), and ~PasswordInFile().