This repository has been archived on 2024-11-17. You can view files and clone it, but cannot push or open issues or pull requests.
zamek-hswro/HardcodedKeyStorage.h

25 lines
497 B
C
Raw Permalink Normal View History

2017-12-17 11:31:13 +00:00
#ifndef HARDCODEDKEYSTORAGE_H
#define HARDCODEDKEYSTORAGE_H
#include "IKeyStorage.h"
class HardcodedKeyStorage: public IKeyStorage
{
public:
HardcodedKeyStorage();
virtual ~HardcodedKeyStorage();
virtual bool contains(const Key &inputKey);
virtual bool insert(const Key &existingKey, const Key &newKey);
virtual bool remove(const Key &key);
private:
enum {
NUMBER_OF_ENTRIES = 1,
};
Key keyTable[NUMBER_OF_ENTRIES];
};
#endif // HARDCODEDKEYSTORAGE_H