35 BOOST_CONCEPT_ASSERT((WireEncodable<Certificate>));
    36 BOOST_CONCEPT_ASSERT((WireDecodable<Certificate>));
   134   return (certName.
size() >= Certificate::MIN_CERT_NAME_LENGTH &&
   141   os << 
"Certificate name:\n";
   142   os << 
"  " << cert.
getName() << 
"\n";
   151     os << 
"Additional Description:\n";
   153       os << 
"  " << item.first << 
": " << item.second << 
"\n";
   160   os << 
"Public key bits:\n";
   162     using namespace transform;
   167   os << 
"Signature Information:\n";
   172       os << 
"  Key Locator: ";
   175         os << 
"Self-Signed ";
   177       os << keyLocator << 
"\n";
   188     NDN_THROW(std::invalid_argument(
"Certificate name `" + certName.
toUri() + 
"` "   189                                     "does not respect the naming conventions"));
   192   return certName.
getPrefix(Certificate::KEY_COMPONENT_OFFSET); 
   199     NDN_THROW(std::invalid_argument(
"Certificate name `" + certName.
toUri() + 
"` "   200                                     "does not respect the naming conventions"));
   203   return certName.
getPrefix(Certificate::KEY_ID_OFFSET + 1); 
 PartialName getPrefix(ssize_t nComponents) const
Returns a prefix of the name. 
Data & setContentType(uint32_t type)
static const ssize_t KEY_ID_OFFSET
The certificate following the certificate format naming convention. 
const Name & getName() const
Get name. 
Buffer getPublicKey() const
Get public key bits (in PKCS#8 format) 
name::Component getIssuerId() const
Get issuer ID. 
static const size_t MIN_KEY_NAME_LENGTH
std::string to_string(const T &val)
const Block & getContent() const
Get Content. 
Name getIdentity() const
Get identity name. 
const Component & get(ssize_t i) const
Returns an immutable reference to the component at the specified index. 
Abstraction of AdditionalDescription. 
Name extractKeyNameFromCertName(const Name &certName)
Extract key name from the certificate name certName. 
const Block & getTypeSpecificTlv(uint32_t type) const
Get SignatureType-specific sub-element. 
Represents a TLV element of NDN packet format. 
bool isValid(const time::system_clock::TimePoint &now=time::system_clock::now()) const
Check if now falls within the validity period. 
bool hasKeyLocator() const
Check if KeyLocator exists in SignatureInfo. 
static const size_t MIN_CERT_NAME_LENGTH
const Component & at(ssize_t i) const
Returns an immutable reference to the component at the specified index, with bounds checking...
std::ostream & operator<<(std::ostream &os, const AdditionalDescription &desc)
tlv::SignatureTypeValue getType() const
Get SignatureType. 
Abstraction of validity period. 
const Signature & getSignature() const
Get Signature. 
static const ssize_t KEY_COMPONENT_OFFSET
std::pair< time::system_clock::TimePoint, time::system_clock::TimePoint > getPeriod() const
Get the stored validity period. 
static const ssize_t VERSION_OFFSET
Name getKeyName() const
Get key name. 
Represents an absolute name. 
std::string toIsoString(const system_clock::TimePoint &timePoint)
Convert to the ISO string representation of the time (YYYYMMDDTHHMMSS,fffffffff) 
size_t size() const
Returns the number of components. 
Represents a name component. 
name::Component getKeyId() const
Get key ID. 
static bool isValidName(const Name &certName)
Check if the specified name follows the naming convention for the certificate. 
void toUri(std::ostream &os, name::UriFormat format=name::UriFormat::DEFAULT) const
Write URI representation of the name to the output stream. 
static const name::Component KEY_COMPONENT
static const ssize_t ISSUER_ID_OFFSET
ValidityPeriod getValidityPeriod() const
Get validity period of the certificate. 
const KeyLocator & getKeyLocator() const
Get KeyLocator. 
const SignatureInfo & getSignatureInfo() const
Get SignatureInfo. 
time::milliseconds getFreshnessPeriod() const
Represents a Data packet. 
const Block & getExtension(uint32_t type) const
Get extension with TLV type. 
General-purpose automatically managed/resized buffer. 
Output to stream with specified indent or prefix. 
uint32_t getContentType() const
bool isValid(const time::system_clock::TimePoint &ts=time::system_clock::now()) const
Check if the certificate is valid at ts. 
security::ValidityPeriod getValidityPeriod() const
Get ValidityPeriod. 
Name extractIdentityFromCertName(const Name &certName)
Extract identity namespace from the certificate name certName.