proxygen
|
#include <CertDecompressionManager.h>
Public Member Functions | |
CertDecompressionManager () | |
CertDecompressionManager (std::vector< std::shared_ptr< CertificateDecompressor >> decompressors) | |
void | setDecompressors (std::vector< std::shared_ptr< CertificateDecompressor >> decompressors) |
std::vector< CertificateCompressionAlgorithm > | getSupportedAlgorithms () const |
std::shared_ptr< CertificateDecompressor > | getDecompressor (CertificateCompressionAlgorithm algo) const |
Private Attributes | |
std::map< CertificateCompressionAlgorithm, std::shared_ptr< CertificateDecompressor > > | decompressors_ |
std::vector< CertificateCompressionAlgorithm > | supportedAlgos_ |
Definition at line 18 of file CertDecompressionManager.h.
fizz::CertDecompressionManager::CertDecompressionManager | ( | ) |
Can be constructed empty with no arguments or initialized with the decompressors provided.
Definition at line 13 of file CertDecompressionManager.cpp.
|
explicit |
Definition at line 15 of file CertDecompressionManager.cpp.
References folly::gen::move, and setDecompressors().
std::shared_ptr< CertificateDecompressor > fizz::CertDecompressionManager::getDecompressor | ( | CertificateCompressionAlgorithm | algo | ) | const |
Returns the decompressor for a given algorithm. If not found, returns nullptr;
Definition at line 38 of file CertDecompressionManager.cpp.
References decompressors_, and fizz::toString().
std::vector< CertificateCompressionAlgorithm > fizz::CertDecompressionManager::getSupportedAlgorithms | ( | ) | const |
Return supported decompression algorithms.
Definition at line 33 of file CertDecompressionManager.cpp.
References supportedAlgos_.
void fizz::CertDecompressionManager::setDecompressors | ( | std::vector< std::shared_ptr< CertificateDecompressor >> | decompressors | ) |
Explicitly sets the decompressors. Clears the internal storage before using the new list.
Definition at line 20 of file CertDecompressionManager.cpp.
References decompressors_, and supportedAlgos_.
Referenced by CertDecompressionManager().
|
private |
Definition at line 51 of file CertDecompressionManager.h.
Referenced by getDecompressor(), and setDecompressors().
|
private |
Definition at line 53 of file CertDecompressionManager.h.
Referenced by getSupportedAlgorithms(), and setDecompressors().