25 #ifndef NDN_CXX_SECURITY_CERTIFICATE_HPP 
   26 #define NDN_CXX_SECURITY_CERTIFICATE_HPP 
Represents a TLV element of the NDN packet format.
 
General-purpose automatically managed/resized buffer.
 
Represents a Data packet.
 
Represents an absolute name.
 
Represents a name component.
 
Represents a ValidityPeriod TLV element.
 
Represents an NDN certificate following the version 2.0 format.
 
Buffer getPublicKey() const
Get public key bits (in PKCS#8 format)
 
bool isValid(const time::system_clock::TimePoint &ts=time::system_clock::now()) const
Check if the certificate is valid at ts.
 
name::Component getIssuerId() const
Get issuer ID.
 
static const name::Component KEY_COMPONENT
 
Name getKeyName() const
Get key name.
 
Name getIdentity() const
Get identity name.
 
ValidityPeriod getValidityPeriod() const
Get validity period of the certificate.
 
static const ssize_t KEY_COMPONENT_OFFSET
 
static const size_t MIN_KEY_NAME_LENGTH
 
static bool isValidName(const Name &certName)
Check if the specified name follows the naming convention for the certificate.
 
name::Component getKeyId() const
Get key ID.
 
static const size_t MIN_CERT_NAME_LENGTH
 
static const ssize_t ISSUER_ID_OFFSET
 
static const ssize_t VERSION_OFFSET
 
static const ssize_t KEY_ID_OFFSET
 
Block getExtension(uint32_t type) const
Get extension with TLV type.
 
static time_point now() noexcept
 
std::ostream & operator<<(std::ostream &os, const AdditionalDescription &desc)
 
Name extractKeyNameFromCertName(const Name &certName)
Extract key name from the certificate name certName.
 
Name extractIdentityFromCertName(const Name &certName)
Extract identity namespace from the certificate name certName.