25 #ifndef NDN_CXX_SECURITY_CERTIFICATE_HPP
26 #define NDN_CXX_SECURITY_CERTIFICATE_HPP
163 operator<<(std::ostream& os,
const Certificate& cert);
Represents a TLV element of the NDN packet format.
span< const uint8_t > value_bytes() const noexcept
Return a read-only view of TLV-VALUE as a contiguous range of bytes.
Represents a Data packet.
const Block & getContent() const noexcept
Get the Content element.
Represents an absolute name.
Represents a name component.
Represents an NDN certificate.
name::Component getIssuerId() const
Get issuer ID.
span< const uint8_t > getPublicKey() const noexcept
Return the public key as a DER-encoded SubjectPublicKeyInfo structure, i.e., exactly as it appears in...
Name getKeyName() const
Get key name.
Name getIdentity() const
Get identity name.
static constexpr ssize_t KEY_COMPONENT_OFFSET
name::Component getKeyId() const
Get key ID.
static constexpr ssize_t VERSION_OFFSET
static const name::Component DEFAULT_ISSUER_ID
bool isValid(const time::system_clock::time_point &ts=time::system_clock::now()) const
Check if the certificate is valid at ts.
ValidityPeriod getValidityPeriod() const
Get validity period of the certificate.
static constexpr ssize_t ISSUER_ID_OFFSET
static constexpr ssize_t KEY_ID_OFFSET
static const name::Component KEY_COMPONENT
static constexpr size_t MIN_KEY_NAME_LENGTH
static bool isValidName(const Name &certName)
Check if the specified name respects the naming conventions for certificates.
static constexpr size_t MIN_CERT_NAME_LENGTH
Block getExtension(uint32_t type) const
Get extension with TLV type.
Represents a ValidityPeriod TLV element.
static time_point now() noexcept
::boost::chrono::time_point< system_clock > time_point
Error(const char *expectedType, uint32_t actualType)
Contains the ndn-cxx security framework.
std::ostream & operator<<(std::ostream &os, const AdditionalDescription &desc)
Name extractIdentityFromCertName(const Name &certName)
Extract identity namespace from the certificate name certName.
Name extractKeyNameFromCertName(const Name &certName)
Extract key name from the certificate name certName.