proxygen
fizz::client::PskCache Class Referenceabstract

#include <PskCache.h>

Inheritance diagram for fizz::client::PskCache:
fizz::client::BasicPskCache fizz::client::SynchronizedLruPskCache fizz::client::test::MockPskCache

Public Member Functions

virtual ~PskCache ()=default
 
virtual folly::Optional< CachedPskgetPsk (const std::string &identity)=0
 
virtual void putPsk (const std::string &identity, CachedPsk)=0
 
virtual void removePsk (const std::string &identity)=0
 

Detailed Description

Definition at line 39 of file PskCache.h.

Constructor & Destructor Documentation

virtual fizz::client::PskCache::~PskCache ( )
virtualdefault

Member Function Documentation

virtual folly::Optional<CachedPsk> fizz::client::PskCache::getPsk ( const std::string identity)
pure virtual

Retrieve a PSK for the specified identity.

Implemented in fizz::client::BasicPskCache, and fizz::client::SynchronizedLruPskCache.

virtual void fizz::client::PskCache::putPsk ( const std::string identity,
CachedPsk   
)
pure virtual

Add a new PSK for identity to the cache.

Implemented in fizz::client::BasicPskCache, and fizz::client::SynchronizedLruPskCache.

virtual void fizz::client::PskCache::removePsk ( const std::string identity)
pure virtual

Remove any PSKs associated with identity from the cache.

Implemented in fizz::client::BasicPskCache, and fizz::client::SynchronizedLruPskCache.


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