Yingdi Yu | 17bc301 | 2014-02-10 17:37:12 -0800 | [diff] [blame^] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2013 Regents of the University of California. |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #ifndef NDN_COMMAND_INTEREST_GENERATOR_HPP |
| 8 | #define NDN_COMMAND_INTEREST_GENERATOR_HPP |
| 9 | |
| 10 | #include "../interest.hpp" |
| 11 | #include "../security/key-chain.hpp" |
| 12 | |
| 13 | |
| 14 | namespace ndn |
| 15 | { |
| 16 | |
| 17 | class CommandInterestGenerator |
| 18 | { |
| 19 | public: |
| 20 | static const Name DEFAULT_CERTIFICATE_NAME; |
| 21 | |
| 22 | CommandInterestGenerator(); |
| 23 | |
| 24 | virtual |
| 25 | ~CommandInterestGenerator() {} |
| 26 | |
| 27 | void |
| 28 | generate(Interest& interest, const Name& certificateName = DEFAULT_CERTIFICATE_NAME); |
| 29 | |
| 30 | void |
| 31 | generateWithIdentity(Interest& interest, const Name& identity); |
| 32 | |
| 33 | private: |
| 34 | int64_t m_lastTimestamp; |
| 35 | KeyChain m_keyChain; |
| 36 | }; |
| 37 | |
| 38 | }//ndn |
| 39 | |
| 40 | #endif |