26 #ifndef NDN_SECURITY_V1_CERTIFICATE_HPP 27 #define NDN_SECURITY_V1_CERTIFICATE_HPP 29 #include "../../common.hpp" 30 #include "../../data.hpp" 96 const SubjectDescriptionList&
102 SubjectDescriptionList&
219 #ifdef NDN_CXX_KEEP_SECURITY_V1_ALIASES 222 #endif // NDN_CXX_KEEP_SECURITY_V1_ALIASES 226 #endif // NDN_SECURITY_V1_CERTIFICATE_HPP const time::system_clock::TimePoint & getNotBefore() const
Copyright (c) 2013-2017 Regents of the University of California.
time::system_clock::TimePoint m_notBefore
void addExtension(const CertificateExtension &extension)
Add a certificate extension.
void setNotAfter(const time::system_clock::TimePoint ¬After)
std::ostream & operator<<(std::ostream &os, const Certificate &cert)
const SubjectDescriptionList & getSubjectDescriptionList() const
Certificate()
The default constructor.
SubjectDescriptionList m_subjectDescriptionList
Represents a TLV element of NDN packet format.
void addSubjectDescription(const CertificateSubjectDescription &description)
Add a subject description.
const time::system_clock::TimePoint & getNotAfter() const
PublicKey & getPublicKeyInfo()
bool isTooEarly()
Check if the certificate is valid.
void setNotBefore(const time::system_clock::TimePoint ¬Before)
void setPublicKeyInfo(const PublicKey &key)
std::vector< CertificateSubjectDescription > SubjectDescriptionList
ExtensionList & getExtensionList()
A CertificateSubjectDescription represents the SubjectDescription entry in a Certificate.
const PublicKey & getPublicKeyInfo() const
void encode()
encode certificate info into content
SubjectDescriptionList & getSubjectDescriptionList()
time::system_clock::TimePoint & getNotAfter()
void printCertificate(std::ostream &os, const std::string &indent="") const
bool isTooLate()
Check if the certificate is valid.
A CertificateExtension represents the Extension entry in a certificate.
Error(const std::string &what)
time::system_clock::TimePoint m_notAfter
ExtensionList m_extensionList
Represents a Data packet.
void wireDecode(const Block &wire)
const ExtensionList & getExtensionList() const
std::vector< CertificateExtension > ExtensionList
time::system_clock::TimePoint & getNotBefore()