NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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_V1_IDENTITY_CERTIFICATE_HPP
25
#define NDN_SECURITY_V1_IDENTITY_CERTIFICATE_HPP
26
27
#include "../../common.hpp"
28
#include "
certificate.hpp
"
29
30
namespace
ndn
{
31
namespace
security
{
32
namespace
v1 {
33
34
class
IdentityCertificate
:
public
Certificate
35
{
36
public
:
37
class
Error
:
public
Certificate::Error
38
{
39
public
:
40
explicit
41
Error
(
const
std::string& what)
42
:
Certificate
::
Error
(what)
43
{
44
}
45
};
46
50
IdentityCertificate
();
51
56
explicit
57
IdentityCertificate
(
const
Data
& data);
58
63
explicit
64
IdentityCertificate
(
const
Block
& block);
65
66
void
67
wireDecode
(
const
Block
& wire);
68
69
void
70
setName
(
const
Name
&
name
);
71
72
const
Name
&
73
getPublicKeyName
()
const
74
{
75
return
m_publicKeyName
;
76
}
77
78
static
bool
79
isIdentityCertificate
(
const
Certificate
& certificate);
80
86
static
Name
87
certificateNameToPublicKeyName
(
const
Name
& certificateName);
88
89
private
:
90
static
bool
91
isCorrectName(
const
Name
& name);
92
93
void
94
setPublicKeyName();
95
96
protected
:
97
Name
m_publicKeyName
;
98
};
99
100
}
// namespace v1
101
}
// namespace security
102
103
#ifdef NDN_CXX_KEEP_SECURITY_V1_ALIASES
104
using
security::v1::IdentityCertificate
;
106
#endif // NDN_CXX_KEEP_SECURITY_V1_ALIASES
107
108
}
// namespace ndn
109
110
#endif // NDN_SECURITY_V1_IDENTITY_CERTIFICATE_HPP
ndn::security::v1::IdentityCertificate
Definition:
identity-certificate.hpp:34
ndn::security::v1::IdentityCertificate::certificateNameToPublicKeyName
static Name certificateNameToPublicKeyName(const Name &certificateName)
Get the public key name from the full certificate name.
Definition:
identity-certificate.cpp:109
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::security::v1::Certificate
Definition:
certificate.hpp:39
ndn::security::v1::IdentityCertificate::getPublicKeyName
const Name & getPublicKeyName() const
Definition:
identity-certificate.hpp:73
ndn::Block
Class representing a wire element of NDN-TLV packet format.
Definition:
block.hpp:43
ndn::security::v1::Certificate::Error
Definition:
certificate.hpp:42
ndn::security::v1::IdentityCertificate::IdentityCertificate
IdentityCertificate()
The default constructor.
Definition:
identity-certificate.cpp:36
ndn::security::v1::IdentityCertificate::isIdentityCertificate
static bool isIdentityCertificate(const Certificate &certificate)
Definition:
identity-certificate.cpp:103
ndn::security::v1::IdentityCertificate::wireDecode
void wireDecode(const Block &wire)
Definition:
identity-certificate.cpp:54
certificate.hpp
ndn::Name
Name abstraction to represent an absolute name.
Definition:
name.hpp:46
ndn::security::v1::IdentityCertificate::setName
void setName(const Name &name)
Definition:
identity-certificate.cpp:61
ndn::security::v1::IdentityCertificate::Error::Error
Error(const std::string &what)
Definition:
identity-certificate.hpp:41
ndn::security::v1::IdentityCertificate::Error
Definition:
identity-certificate.hpp:37
ndn::Data
represents a Data packet
Definition:
data.hpp:37
ndn::name
Definition:
name-component.cpp:36
security
ndn::security::v1::IdentityCertificate::m_publicKeyName
Name m_publicKeyName
Definition:
identity-certificate.hpp:97
ndnSIM
ndn-cxx
src
security
v1
identity-certificate.hpp
Generated on Wed Jan 11 2017 18:17:14 for ndnSIM by
1.8.13