blob: 70208f2634a07c46f43083aa0993c84423d92b09 [file] [log] [blame]
Yingdi Yu17bc3012014-02-10 17:37:12 -08001/* -*- 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
14namespace ndn
15{
16
17class CommandInterestGenerator
18{
19public:
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
33private:
34 int64_t m_lastTimestamp;
35 KeyChain m_keyChain;
36};
37
38}//ndn
39
40#endif