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