#include <certificate.hpp>
Data Structures | |
| class | Error |
Public Types | |
| typedef std::vector < CertificateSubjectDescription > | SubjectDescriptionList |
| typedef std::vector < CertificateExtension > | ExtensionList |
Public Member Functions | |
| Certificate () | |
| The default constructor. More... | |
| Certificate (const Data &data) | |
| Create a Certificate from the content in the data packet. More... | |
| virtual | ~Certificate () |
| The virtual destructor. More... | |
| void | wireDecode (const Block &wire) |
| void | encode () |
| encode certificate info into content More... | |
| void | addSubjectDescription (const CertificateSubjectDescription &description) |
| Add a subject description. More... | |
| const SubjectDescriptionList & | getSubjectDescriptionList () const |
| SubjectDescriptionList & | getSubjectDescriptionList () |
| void | addExtension (const CertificateExtension &extension) |
| Add a certificate extension. More... | |
| const ExtensionList & | getExtensionList () const |
| ExtensionList & | getExtensionList () |
| void | setNotBefore (const time::system_clock::TimePoint ¬Before) |
| time::system_clock::TimePoint & | getNotBefore () |
| const time::system_clock::TimePoint & | getNotBefore () const |
| void | setNotAfter (const time::system_clock::TimePoint ¬After) |
| time::system_clock::TimePoint & | getNotAfter () |
| const time::system_clock::TimePoint & | getNotAfter () const |
| void | setPublicKeyInfo (const PublicKey &key) |
| PublicKey & | getPublicKeyInfo () |
| const PublicKey & | getPublicKeyInfo () const |
| bool | isTooEarly () |
| Check if the certificate is valid. More... | |
| bool | isTooLate () |
| Check if the certificate is valid. More... | |
| void | printCertificate (std::ostream &os) const |
| template<bool T> | |
| size_t | wireEncode (EncodingImpl< T > &block, bool unsignedPortion=false) const |
| Fast encoding or block size estimation. More... | |
| const Block & | wireEncode () const |
| Encode to a wire format. More... | |
| bool | hasWire () const |
| Check if already has wire. More... | |
| const Name & | getName () const |
| void | setName (const Name &name) |
| Set name to a copy of the given Name. More... | |
| const MetaInfo & | getMetaInfo () const |
| void | setMetaInfo (const MetaInfo &metaInfo) |
| Set metaInfo to a copy of the given MetaInfo. More... | |
| uint32_t | getContentType () const |
| void | setContentType (uint32_t type) |
| const time::milliseconds & | getFreshnessPeriod () const |
| void | setFreshnessPeriod (const time::milliseconds &freshnessPeriod) |
| const name::Component & | getFinalBlockId () const |
| void | setFinalBlockId (const name::Component &finalBlockId) |
| const Block & | getContent () const |
| Get content Block. More... | |
| void | setContent (const uint8_t *content, size_t contentLength) |
| Set the content to a copy of the data in the vector. More... | |
| void | setContent (const Block &content) |
| void | setContent (const ConstBufferPtr &contentValue) |
| const Signature & | getSignature () const |
| void | setSignature (const Signature &signature) |
| Set the signature to a copy of the given signature. More... | |
| void | setSignatureValue (const Block &value) |
| nfd::LocalControlHeader & | getLocalControlHeader () |
| const nfd::LocalControlHeader & | getLocalControlHeader () const |
| uint64_t | getIncomingFaceId () const |
| void | setIncomingFaceId (uint64_t incomingFaceId) |
| bool | operator== (const Data &other) const |
| bool | operator!= (const Data &other) const |
Protected Member Functions | |
| void | decode () |
Protected Attributes | |
| SubjectDescriptionList | m_subjectDescriptionList |
| time::system_clock::TimePoint | m_notBefore |
| time::system_clock::TimePoint | m_notAfter |
| PublicKey | m_key |
| ExtensionList | m_extensionList |
Definition at line 20 of file certificate.hpp.
| typedef std::vector<CertificateExtension> ndn::Certificate::ExtensionList |
Definition at line 34 of file certificate.hpp.
| typedef std::vector<CertificateSubjectDescription> ndn::Certificate::SubjectDescriptionList |
Definition at line 33 of file certificate.hpp.
| ndn::Certificate::Certificate | ( | ) |
The default constructor.
Definition at line 20 of file certificate.cpp.
| ndn::Certificate::Certificate | ( | const Data & | data | ) |
Create a Certificate from the content in the data packet.
| data | The data packet with the content to decode. |
Definition at line 26 of file certificate.cpp.
|
virtual |
The virtual destructor.
Definition at line 33 of file certificate.cpp.
|
inline |
Add a certificate extension.
| extension | the extension to be added |
Definition at line 89 of file certificate.hpp.
|
inline |
Add a subject description.
| description | The description to be added. |
Definition at line 67 of file certificate.hpp.
|
protected |
Definition at line 160 of file certificate.cpp.
| void ndn::Certificate::encode | ( | ) |
encode certificate info into content
Definition at line 57 of file certificate.cpp.
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 95 of file certificate.hpp.
|
inline |
Definition at line 101 of file certificate.hpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 131 of file certificate.hpp.
|
inline |
Definition at line 137 of file certificate.hpp.
|
inline |
Definition at line 113 of file certificate.hpp.
|
inline |
Definition at line 119 of file certificate.hpp.
|
inline |
Definition at line 149 of file certificate.hpp.
|
inline |
Definition at line 155 of file certificate.hpp.
|
inlineinherited |
|
inline |
Definition at line 73 of file certificate.hpp.
|
inline |
Definition at line 79 of file certificate.hpp.
|
inlineinherited |
| bool ndn::Certificate::isTooEarly | ( | ) |
Check if the certificate is valid.
Definition at line 39 of file certificate.cpp.
| bool ndn::Certificate::isTooLate | ( | ) |
Check if the certificate is valid.
Definition at line 48 of file certificate.cpp.
|
inlineinherited |
|
inlineinherited |
| void ndn::Certificate::printCertificate | ( | std::ostream & | os | ) | const |
Definition at line 227 of file certificate.cpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 125 of file certificate.hpp.
|
inline |
Definition at line 107 of file certificate.hpp.
|
inline |
Definition at line 143 of file certificate.hpp.
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 193 of file certificate.hpp.
|
inlineinherited |
|
inlineinherited |
|
protected |
Definition at line 189 of file certificate.hpp.
|
protected |
Definition at line 188 of file certificate.hpp.
|
protected |
Definition at line 187 of file certificate.hpp.
|
protected |
Definition at line 186 of file certificate.hpp.
|
protected |
Definition at line 185 of file certificate.hpp.