SSP21-CPP
IKeySource.h
1 
2 #ifndef SSP21_IKEYSOURCE_H
3 #define SSP21_IKEYSOURCE_H
4 
5 #include "ssp21/crypto/KeyRecord.h"
6 
7 namespace ssp21
8 {
9  /**
10  * Interface used to lookup
11  */
12  class IKeySource
13  {
14  public:
15 
16  virtual ~IKeySource() {}
17 
18  /**
19  * Consume a key record from the key source.
20  *
21  * @return a valid key, or nullptr if no key is available
22  */
23  virtual std::shared_ptr<const KeyRecord> consume_key() = 0;
24  };
25 
26 
27 
28 
29 }
30 
31 #endif
SSP21-cpp main namespace.
Definition: BufferTypes.h:12
virtual std::shared_ptr< const KeyRecord > consume_key()=0