26 #ifndef NDN_SECURITY_V1_CERTIFICATE_EXTENSION_HPP 27 #define NDN_SECURITY_V1_CERTIFICATE_EXTENSION_HPP 29 #include "../../common.hpp" 30 #include "../../encoding/buffer.hpp" 31 #include "../../encoding/oid.hpp" 34 class BufferedTransformation;
47 class Error :
public std::runtime_error
52 :
std::runtime_error(what)
70 : m_extensionId(oid), m_isCritical(isCritical), m_extensionValue(value)
75 const uint8_t* value,
size_t valueSize)
76 : m_extensionId(oid), m_isCritical(isCritical), m_extensionValue(value, valueSize)
89 encode(CryptoPP::BufferedTransformation& out)
const;
92 decode(CryptoPP::BufferedTransformation& in);
109 return m_extensionValue;
121 #ifdef NDN_CXX_KEEP_SECURITY_V1_ALIASES 124 #endif // NDN_CXX_KEEP_SECURITY_V1_ALIASES 128 #endif // NDN_SECURITY_V1_CERTIFICATE_EXTENSION_HPP const Buffer & getValue() const
Copyright (c) 2013-2017 Regents of the University of California.
Copyright (c) 2013-2017 Regents of the University of California.
const Oid & getOid() const
CertificateExtension(const Oid &oid, const bool isCritical, const Buffer &value)
Create a new CertificateExtension.
bool getIsCritical() const
CertificateExtension(const Oid &oid, const bool isCritical, const uint8_t *value, size_t valueSize)
Error(const std::string &what)
CertificateExtension(CryptoPP::BufferedTransformation &in)
A CertificateExtension represents the Extension entry in a certificate.
virtual ~CertificateExtension()
The virtual destructor.
Class representing a general-use automatically managed/resized buffer.