MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / CachedAuthenticator

Method CachedAuthenticator

ecosystem/oss.cpp:1698–1703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected