35 BOOST_CONCEPT_ASSERT((WireEncodable<Certificate>));
 
   36 BOOST_CONCEPT_ASSERT((WireDecodable<Certificate>));
 
   54   : 
Data(std::move(data))
 
  145   os << 
"Certificate name:\n";
 
  146   os << 
"  " << cert.
getName() << 
"\n";
 
  154   if (additionalDescription) {
 
  155     os << 
"Additional Description:\n";
 
  157       os << 
"  " << item.first << 
": " << item.second << 
"\n";
 
  161   os << 
"Public key bits:\n";
 
  163     using namespace transform;
 
  168   os << 
"Signature Information:\n";
 
  174       os << 
"  Key Locator: ";
 
  176         os << 
"Self-Signed ";
 
  178       os << *keyLoc << 
"\n";
 
  189     NDN_THROW(std::invalid_argument(
"Certificate name `" + certName.
toUri() + 
"` " 
  190                                     "does not respect the naming conventions"));
 
  200     NDN_THROW(std::invalid_argument(
"Certificate name `" + certName.
toUri() + 
"` " 
  201                                     "does not respect the naming conventions"));
 
Represents a TLV element of the NDN packet format.
 
General-purpose automatically managed/resized buffer.
 
Represents a Data packet.
 
int32_t getSignatureType() const noexcept
Get SignatureType.
 
optional< KeyLocator > getKeyLocator() const noexcept
Get KeyLocator.
 
const SignatureInfo & getSignatureInfo() const noexcept
Get SignatureInfo.
 
const Name & getName() const noexcept
Get name.
 
time::milliseconds getFreshnessPeriod() const
 
uint32_t getContentType() const
 
const Block & getContent() const noexcept
Get the Content element.
 
Data & setContentType(uint32_t type)
 
Represents an absolute name.
 
PartialName getPrefix(ssize_t nComponents) const
Returns a prefix of the name.
 
const Component & at(ssize_t i) const
Returns an immutable reference to the component at the specified index, with bounds checking.
 
size_t size() const
Returns the number of components.
 
const Component & get(ssize_t i) const
Returns an immutable reference to the component at the specified index.
 
void toUri(std::ostream &os, name::UriFormat format=name::UriFormat::DEFAULT) const
Write URI representation of the name to the output stream.
 
security::ValidityPeriod getValidityPeriod() const
Get ValidityPeriod.
 
optional< Block > getCustomTlv(uint32_t type) const
Get first custom TLV element with the specified TLV-TYPE.
 
Represents a name component.
 
Represents a ValidityPeriod TLV element.
 
bool isValid(const time::system_clock::TimePoint &now=time::system_clock::now()) const
Check if now falls within the validity period.
 
std::pair< time::system_clock::TimePoint, time::system_clock::TimePoint > getPeriod() const
Get the stored validity period.
 
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.
 
Output to stream with specified indent or prefix.
 
std::string to_string(const errinfo_stacktrace &x)
 
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.
 
std::string toIsoString(const system_clock::time_point &timePoint)
Convert to the ISO 8601 string representation, basic format (YYYYMMDDTHHMMSS,fffffffff).
 
@ ContentType_Key
public key, certificate
 
SignatureTypeValue
SignatureType values.