NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
certificate-subject-description.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NDN_SECURITY_CERTIFICATE_SUBJECT_DESCRIPTION_HPP
27
#define NDN_SECURITY_CERTIFICATE_SUBJECT_DESCRIPTION_HPP
28
29
#include "../common.hpp"
30
#include "../encoding/oid.hpp"
31
32
namespace
CryptoPP
{
33
class
BufferedTransformation;
34
}
35
36
namespace
ndn
{
37
41
class
CertificateSubjectDescription
42
{
43
public
:
44
explicit
45
CertificateSubjectDescription
(CryptoPP::BufferedTransformation& in)
46
{
47
decode(in);
48
}
49
55
CertificateSubjectDescription
(
const
OID
& oid,
const
std::string& value)
56
: m_oid(oid), m_value(value)
57
{
58
}
59
60
void
61
encode(CryptoPP::BufferedTransformation& out)
const
;
62
63
void
64
decode(CryptoPP::BufferedTransformation& in);
65
66
std::string
67
getOidString
()
const
68
{
69
return
m_oid.toString();
70
}
71
72
const
std::string&
73
getValue
()
const
74
{
75
return
m_value;
76
}
77
78
private
:
79
OID
m_oid;
80
std::string m_value;
81
};
82
83
}
// namespace ndn
84
85
#endif //NDN_SECURITY_CERTIFICATE_SUBJECT_DESCRIPTION_HPP
ndn::CertificateSubjectDescription::getOidString
std::string getOidString() const
Definition:
certificate-subject-description.hpp:67
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
CryptoPP
Copyright (c) 2013-2014 Regents of the University of California.
Definition:
oid.hpp:29
ndn::CertificateSubjectDescription
A CertificateSubjectDescription represents the SubjectDescription entry in a Certificate.
Definition:
certificate-subject-description.hpp:41
ndn::CertificateSubjectDescription::CertificateSubjectDescription
CertificateSubjectDescription(CryptoPP::BufferedTransformation &in)
Definition:
certificate-subject-description.hpp:45
ndn::CertificateSubjectDescription::getValue
const std::string & getValue() const
Definition:
certificate-subject-description.hpp:73
ndn::OID
Definition:
oid.hpp:35
ndn::CertificateSubjectDescription::CertificateSubjectDescription
CertificateSubjectDescription(const OID &oid, const std::string &value)
Create a new CertificateSubjectDescription.
Definition:
certificate-subject-description.hpp:55
ndnSIM
ndn-cxx
src
security
certificate-subject-description.hpp
Generated on Sat Nov 12 2016 16:02:52 for ndnSIM by
1.8.12