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)
75 const uint8_t* value,
size_t valueSize)
89 encode(CryptoPP::BufferedTransformation& out)
const;
92 decode(CryptoPP::BufferedTransformation& in);
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-2016 Regents of the University of California.
Copyright (c) 2013-2016 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
void encode(CryptoPP::BufferedTransformation &out) const
CertificateExtension(const Oid &oid, const bool isCritical, const uint8_t *value, size_t valueSize)
void decode(CryptoPP::BufferedTransformation &in)
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.