proxygen
folly::PasswordCollector Class Referenceabstract

#include <SSLContext.h>

Inheritance diagram for folly::PasswordCollector:
folly::PasswordInFile

Public Member Functions

virtual ~PasswordCollector ()=default
 
virtual void getPassword (std::string &password, int size) const =0
 
virtual std::string describe () const =0
 

Detailed Description

Override the default password collector.

Definition at line 47 of file SSLContext.h.

Constructor & Destructor Documentation

virtual folly::PasswordCollector::~PasswordCollector ( )
virtualdefault

Member Function Documentation

virtual std::string folly::PasswordCollector::describe ( ) const
pure virtual

Return a description of this collector for logging purposes

Implemented in folly::PasswordInFile.

Referenced by folly::operator<<().

virtual void folly::PasswordCollector::getPassword ( std::string password,
int  size 
) const
pure virtual

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.

Parameters
passwordPass collected password back to OpenSSL
sizeMaximum length of password including nullptr character

Implemented in folly::PasswordInFile.


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