|
proxygen
|
#include <SSLSessionPersistentCache.h>
Classes | |
| class | TimeUtil |
Public Member Functions | |
| SSLSessionPersistentCacheBase (std::shared_ptr< PersistentCache< K, SSLSessionCacheData >> cache) | |
| SSLSessionPersistentCacheBase (std::shared_ptr< folly::Executor > executor, const std::string &filename, std::size_t cacheCapacity, std::chrono::seconds syncInterval) | |
| SSLSessionPersistentCacheBase (const std::string &filename, std::size_t cacheCapacity, std::chrono::seconds syncInterval) | |
| void | setSSLSession (const std::string &identity, SSLSessionPtr session) noexceptoverride |
| SSLSessionPtr | getSSLSession (const std::string &identity) const noexceptoverride |
| bool | removeSSLSession (const std::string &identity) noexceptoverride |
| bool | supportsPersistence () const noexceptoverride |
| void | setTimeUtil (std::unique_ptr< TimeUtil > timeUtil) noexcept |
| size_t | size () const override |
Public Member Functions inherited from wangle::SSLSessionCallbacks | |
| virtual | ~SSLSessionCallbacks () |
Protected Member Functions | |
| virtual K | getKey (const std::string &identity) const =0 |
Protected Attributes | |
| std::shared_ptr< PersistentCache< K, SSLSessionCacheData > > | persistentCache_ |
| std::unique_ptr< TimeUtil > | timeUtil_ |
Additional Inherited Members | |
Static Public Member Functions inherited from wangle::SSLSessionCallbacks | |
| static void | attachCallbacksToContext (SSL_CTX *ctx, SSLSessionCallbacks *callbacks) |
| static void | detachCallbacksFromContext (SSL_CTX *ctx, SSLSessionCallbacks *callbacks) |
| static SSLSessionCallbacks * | getCacheFromContext (SSL_CTX *ctx) |
This cache is as threadsafe as the underlying PersistentCache used. Multiple instances may delegate to the same persistence layer
Definition at line 38 of file SSLSessionPersistentCache.h.
|
explicit |
Definition at line 28 of file SSLSessionPersistentCache-inl.h.
Referenced by wangle::SSLSessionPersistentCacheBase< K >::TimeUtil::now().
| wangle::SSLSessionPersistentCacheBase< K >::SSLSessionPersistentCacheBase | ( | std::shared_ptr< folly::Executor > | executor, |
| const std::string & | filename, | ||
| std::size_t | cacheCapacity, | ||
| std::chrono::seconds | syncInterval | ||
| ) |
Definition at line 34 of file SSLSessionPersistentCache-inl.h.
| wangle::SSLSessionPersistentCacheBase< K >::SSLSessionPersistentCacheBase | ( | const std::string & | filename, |
| std::size_t | cacheCapacity, | ||
| std::chrono::seconds | syncInterval | ||
| ) |
Definition at line 48 of file SSLSessionPersistentCache-inl.h.
|
protectedpure virtual |
Implemented in wangle::SSLSessionPersistentCache.
Referenced by wangle::SSLSessionPersistentCacheBase< K >::getSSLSession(), wangle::SSLSessionPersistentCacheBase< K >::removeSSLSession(), wangle::SSLSessionPersistentCacheBase< K >::setSSLSession(), and wangle::SSLSessionPersistentCacheBase< std::string >::setTimeUtil().
|
overridevirtualnoexcept |
Implements wangle::SSLSessionCallbacks.
Definition at line 76 of file SSLSessionPersistentCache-inl.h.
References wangle::SSLSessionPersistentCacheBase< K >::getKey(), wangle::getSessionFromCacheData(), now(), wangle::SSLSessionPersistentCacheBase< K >::persistentCache_, folly::portability::ssl::SSL_SESSION_get_ticket_lifetime_hint(), folly::portability::ssl::SSL_SESSION_has_ticket(), wangle::SSLSessionPersistentCacheBase< K >::timeUtil_, and value.
Referenced by wangle::SSLSessionPersistentCacheBase< K >::TimeUtil::now().
|
overridevirtualnoexcept |
Implements wangle::SSLSessionCallbacks.
Definition at line 105 of file SSLSessionPersistentCache-inl.h.
References wangle::SSLSessionPersistentCacheBase< K >::getKey(), and wangle::SSLSessionPersistentCacheBase< K >::persistentCache_.
Referenced by wangle::SSLSessionPersistentCacheBase< K >::TimeUtil::now().
|
overridevirtualnoexcept |
Implements wangle::SSLSessionCallbacks.
Definition at line 59 of file SSLSessionPersistentCache-inl.h.
References wangle::getCacheDataForSession(), wangle::SSLSessionPersistentCacheBase< K >::getKey(), wangle::SSLSessionPersistentCacheBase< K >::persistentCache_, and wangle::SSLSessionPersistentCacheBase< K >::timeUtil_.
Referenced by wangle::SSLSessionPersistentCacheBase< K >::TimeUtil::now().
|
inlinenoexcept |
Definition at line 86 of file SSLSessionPersistentCache.h.
|
overridevirtual |
Reimplemented from wangle::SSLSessionCallbacks.
Definition at line 112 of file SSLSessionPersistentCache-inl.h.
References wangle::SSLSessionPersistentCacheBase< K >::persistentCache_.
Referenced by wangle::SSLSessionPersistentCacheBase< std::string >::setTimeUtil().
|
inlineoverridevirtualnoexcept |
Reimplemented from wangle::SSLSessionCallbacks.
Definition at line 82 of file SSLSessionPersistentCache.h.
|
protected |
Definition at line 98 of file SSLSessionPersistentCache.h.
Referenced by wangle::SSLSessionPersistentCacheBase< K >::getSSLSession(), wangle::SSLSessionPersistentCacheBase< K >::removeSSLSession(), wangle::SSLSessionPersistentCacheBase< K >::setSSLSession(), and wangle::SSLSessionPersistentCacheBase< K >::size().
|
protected |