ndn::security::v1::CertificateSubjectDescription Class Reference

A CertificateSubjectDescription represents the SubjectDescription entry in a Certificate. More...

#include <certificate-subject-description.hpp>

Public Member Functions

 CertificateSubjectDescription (CryptoPP::BufferedTransformation &in)
 
 CertificateSubjectDescription (const Oid &oid, const std::string &value)
 Create a new CertificateSubjectDescription. More...
 
void decode (CryptoPP::BufferedTransformation &in)
 
void encode (CryptoPP::BufferedTransformation &out) const
 
std::string getOidString () const
 
const std::string & getValue () const
 

Detailed Description

A CertificateSubjectDescription represents the SubjectDescription entry in a Certificate.

Definition at line 43 of file certificate-subject-description.hpp.

Constructor & Destructor Documentation

ndn::security::v1::CertificateSubjectDescription::CertificateSubjectDescription ( CryptoPP::BufferedTransformation &  in)
inlineexplicit

Definition at line 47 of file certificate-subject-description.hpp.

ndn::security::v1::CertificateSubjectDescription::CertificateSubjectDescription ( const Oid oid,
const std::string &  value 
)
inline

Create a new CertificateSubjectDescription.

Parameters
oidThe oid of the subject description entry.
valueThe value of the subject description entry.

Definition at line 57 of file certificate-subject-description.hpp.

Member Function Documentation

void ndn::security::v1::CertificateSubjectDescription::decode ( CryptoPP::BufferedTransformation &  in)
Todo:
May be add more intelligent processing, since the following may fail if somebody encoded attribute that uses non PRINTABLE_STRING as value

Definition at line 57 of file certificate-subject-description.cpp.

void ndn::security::v1::CertificateSubjectDescription::encode ( CryptoPP::BufferedTransformation &  out) const

Definition at line 35 of file certificate-subject-description.cpp.

std::string ndn::security::v1::CertificateSubjectDescription::getOidString ( ) const
inline

Definition at line 69 of file certificate-subject-description.hpp.

const std::string& ndn::security::v1::CertificateSubjectDescription::getValue ( ) const
inline

Definition at line 75 of file certificate-subject-description.hpp.