blob: ed42608edfac97599fdcce69d6ac0e17ffd82ce5 [file] [log] [blame]
Jeff Thompson41471912013-09-12 16:21:50 -07001/**
Jeff Thompson06e787d2013-09-12 19:00:55 -07002 * @author: Yingdi Yu <yingdi@cs.ucla.edu>
Jeff Thompson41471912013-09-12 16:21:50 -07003 * @author: Jeff Thompson
4 * See COPYING for copyright and distribution information.
5 */
6
7#ifndef NDN_IDENTITY_MANAGER_HPP
8#define NDN_IDENTITY_MANAGER_HPP
9
Jeff Thompson7b79eb62013-09-12 18:48:29 -070010#include "../../data.hpp"
Jeff Thompson41471912013-09-12 16:21:50 -070011
12namespace ndn {
13
14class IdentityManager {
15public:
16 /**
17 *
18 * Note: the caller must make sure the timestamp in data is correct, for example with
19 * data.getMetaInfo().setTimestampMilliseconds(time(NULL) * 1000.0).
20 * @param data The Data object to sign and update its signature.
21 * @param certificateName The Name identifying the certificate which identifies the signing key.
22 * @param wireFormat The WireFormat for calling encodeData, or WireFormat::getDefaultWireFormat() if omitted.
23 */
24 void signByCertificate(const Data& data, const Name& certificateName, WireFormat& wireFormat = *WireFormat::getDefaultWireFormat());
25};
26
27}
28
29#endif