#include <identity-certificate.hpp>
Data Structures | |
| class | Error |
Public Types | |
| typedef std::vector < CertificateSubjectDescription > | SubjectDescriptionList |
| typedef std::vector < CertificateExtension > | ExtensionList |
Public Member Functions | |
| IdentityCertificate () | |
| The default constructor. More... | |
| IdentityCertificate (const Data &data) | |
| Create an IdentityCertificate from the content in the data packet. More... | |
| virtual | ~IdentityCertificate () |
| The virtual destructor. More... | |
| void | wireDecode (const Block &wire) |
| void | setName (const Name &name) |
| const Name & | getPublicKeyName () const |
| 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 |
| 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 |
Static Public Member Functions | |
| static bool | isIdentityCertificate (const Certificate &certificate) |
| static Name | certificateNameToPublicKeyName (const Name &certificateName) |
| Get the public key name from the full certificate name. More... | |
Protected Member Functions | |
| void | decode () |
Definition at line 17 of file identity-certificate.hpp.
|
inherited |
Definition at line 34 of file certificate.hpp.
|
inherited |
Definition at line 33 of file certificate.hpp.
|
inline |
The default constructor.
Definition at line 81 of file identity-certificate.hpp.
|
inline |
Create an IdentityCertificate from the content in the data packet.
| data | The data packet with the content to decode. |
Definition at line 86 of file identity-certificate.hpp.
|
inlinevirtual |
The virtual destructor.
Definition at line 93 of file identity-certificate.hpp.
|
inlineinherited |
Add a certificate extension.
| extension | the extension to be added |
Definition at line 89 of file certificate.hpp.
|
inlineinherited |
Add a subject description.
| description | The description to be added. |
Definition at line 67 of file certificate.hpp.
|
static |
Get the public key name from the full certificate name.
| certificateName | The full certificate name. |
Definition at line 59 of file identity-certificate.cpp.
|
protectedinherited |
Definition at line 160 of file certificate.cpp.
|
inherited |
encode certificate info into content
Definition at line 57 of file certificate.cpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 95 of file certificate.hpp.
|
inlineinherited |
Definition at line 101 of file certificate.hpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 131 of file certificate.hpp.
|
inlineinherited |
Definition at line 137 of file certificate.hpp.
|
inlineinherited |
Definition at line 113 of file certificate.hpp.
|
inlineinherited |
Definition at line 119 of file certificate.hpp.
|
inlineinherited |
Definition at line 149 of file certificate.hpp.
|
inlineinherited |
Definition at line 155 of file certificate.hpp.
|
inline |
Definition at line 112 of file identity-certificate.hpp.
|
inlineinherited |
|
inlineinherited |
Definition at line 73 of file certificate.hpp.
|
inlineinherited |
Definition at line 79 of file certificate.hpp.
|
inlineinherited |
|
static |
Definition at line 53 of file identity-certificate.cpp.
|
inherited |
Check if the certificate is valid.
Definition at line 39 of file certificate.cpp.
|
inherited |
Check if the certificate is valid.
Definition at line 48 of file certificate.cpp.
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 227 of file certificate.cpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 105 of file identity-certificate.hpp.
|
inlineinherited |
Definition at line 125 of file certificate.hpp.
|
inlineinherited |
Definition at line 107 of file certificate.hpp.
|
inlineinherited |
Definition at line 143 of file certificate.hpp.
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 98 of file identity-certificate.hpp.
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
Definition at line 189 of file certificate.hpp.
|
protectedinherited |
Definition at line 188 of file certificate.hpp.
|
protectedinherited |
Definition at line 187 of file certificate.hpp.
|
protectedinherited |
Definition at line 186 of file certificate.hpp.
|
protected |
Definition at line 77 of file identity-certificate.hpp.
|
protectedinherited |
Definition at line 185 of file certificate.hpp.