| 1696 | |
| 1697 | public: |
| 1698 | CachedAuthenticator(Authenticator* auth, uint32_t cache_ttl_secs) |
| 1699 | : m_auth(auth), |
| 1700 | m_cached_ttl_secs(cache_ttl_secs), |
| 1701 | m_cached_headers( |
| 1702 | std::make_shared<ObjectCache<std::string, CachedObjHeader*>>( |
| 1703 | 1000ll * 1000 * cache_ttl_secs)) {} |
| 1704 | ~CachedAuthenticator() { delete m_auth; } |
| 1705 | int sign(photon::net::http::Headers& headers, |
| 1706 | const Authenticator::SignParameters& params) override { |
nothing calls this directly
no outgoing calls
no test coverage detected