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