NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
identity-certificate.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
24
#ifndef NDN_SECURITY_IDENTITY_CERTIFICATE_HPP
25
#define NDN_SECURITY_IDENTITY_CERTIFICATE_HPP
26
27
#include "../common.hpp"
28
#include "
certificate.hpp
"
29
30
namespace
ndn
{
31
32
class
IdentityCertificate
:
public
Certificate
33
{
34
public
:
35
class
Error
:
public
Certificate::Error
36
{
37
public
:
38
explicit
39
Error
(
const
std::string& what)
40
:
Certificate
::
Error
(what)
41
{
42
}
43
};
44
48
IdentityCertificate
();
49
54
explicit
55
IdentityCertificate
(
const
Data
& data);
56
61
explicit
62
IdentityCertificate
(
const
Block
& block);
63
64
void
65
wireDecode
(
const
Block
& wire);
66
67
void
68
setName
(
const
Name
&
name
);
69
70
const
Name
&
71
getPublicKeyName
()
const
72
{
73
return
m_publicKeyName
;
74
}
75
76
static
bool
77
isIdentityCertificate
(
const
Certificate
& certificate);
78
84
static
Name
85
certificateNameToPublicKeyName
(
const
Name
& certificateName);
86
87
private
:
88
static
bool
89
isCorrectName(
const
Name
& name);
90
91
void
92
setPublicKeyName();
93
94
protected
:
95
Name
m_publicKeyName
;
96
};
97
98
}
// namespace ndn
99
100
#endif // NDN_SECURITY_IDENTITY_CERTIFICATE_HPP
ndn::IdentityCertificate::Error::Error
Error(const std::string &what)
Definition:
identity-certificate.hpp:39
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::IdentityCertificate::certificateNameToPublicKeyName
static Name certificateNameToPublicKeyName(const Name &certificateName)
Get the public key name from the full certificate name.
Definition:
identity-certificate.cpp:109
ndn::Block
Class representing a wire element of NDN-TLV packet format.
Definition:
block.hpp:43
ndn::IdentityCertificate::wireDecode
void wireDecode(const Block &wire)
Definition:
identity-certificate.cpp:54
ndn::IdentityCertificate::getPublicKeyName
const Name & getPublicKeyName() const
Definition:
identity-certificate.hpp:71
ndn::Certificate
Definition:
certificate.hpp:37
ndn::IdentityCertificate::IdentityCertificate
IdentityCertificate()
The default constructor.
Definition:
identity-certificate.cpp:36
ndn::IdentityCertificate::setName
void setName(const Name &name)
Definition:
identity-certificate.cpp:61
certificate.hpp
ndn::IdentityCertificate::isIdentityCertificate
static bool isIdentityCertificate(const Certificate &certificate)
Definition:
identity-certificate.cpp:103
ndn::IdentityCertificate::Error
Definition:
identity-certificate.hpp:35
ndn::Name
Name abstraction to represent an absolute name.
Definition:
name.hpp:46
ndn::Certificate::Error
Definition:
certificate.hpp:40
ndn::IdentityCertificate::m_publicKeyName
Name m_publicKeyName
Definition:
identity-certificate.hpp:95
ndn::Data
represents a Data packet
Definition:
data.hpp:39
ndn::IdentityCertificate
Definition:
identity-certificate.hpp:32
ndn::name
Definition:
name-component.cpp:37
ndnSIM
ndn-cxx
src
security
identity-certificate.hpp
Generated on Sat Nov 12 2016 16:02:52 for ndnSIM by
1.8.12