|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
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";
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"));
199 NDN_THROW(std::invalid_argument(
"Certificate name `" + certName.
toUri() +
"` "
200 "does not respect the naming conventions"));
@ ContentType_Key
public key, certificate
uint32_t getContentType() const
name::Component getIssuerId() const
Get issuer ID.
Name getIdentity() const
Get identity name.
static bool isValidName(const Name &certName)
Check if the specified name follows the naming convention for the certificate.
const Block & getTypeSpecificTlv(uint32_t type) const
Get SignatureType-specific sub-element.
Data & setContentType(uint32_t type)
General-purpose automatically managed/resized buffer.
size_t size() const
Returns the number of components.
static const name::Component KEY_COMPONENT
Name getKeyName() const
Get key name.
const Block & getContent() const
Get Content.
Buffer getPublicKey() const
Get public key bits (in PKCS#8 format)
const KeyLocator & getKeyLocator() const
Get KeyLocator.
std::pair< time::system_clock::TimePoint, time::system_clock::TimePoint > getPeriod() const
Get the stored validity period.
const Name & getName() const
Get name.
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.
a concept check for TLV abstraction with .wireDecode method and constructible from Block
time::milliseconds getFreshnessPeriod() const
Represents an absolute name.
const SignatureInfo & getSignatureInfo() const
Get SignatureInfo.
The certificate following the certificate format naming convention.
a concept check for TLV abstraction with .wireEncode method
static const ssize_t KEY_COMPONENT_OFFSET
static const ssize_t VERSION_OFFSET
Abstraction of validity period.
static const ssize_t KEY_ID_OFFSET
PartialName getPrefix(ssize_t nComponents) const
Returns a prefix of the name.
std::ostream & operator<<(std::ostream &os, const AdditionalDescription &desc)
std::string toIsoString(const system_clock::TimePoint &timePoint)
Convert to the ISO string representation of the time (YYYYMMDDTHHMMSS,fffffffff)
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.
ValidityPeriod getValidityPeriod() const
Get validity period of the certificate.
void toUri(std::ostream &os, name::UriFormat format=name::UriFormat::DEFAULT) const
Write URI representation of the name to the output stream.
Represents a Data packet.
Output to stream with specified indent or prefix.
const Component & at(ssize_t i) const
Returns an immutable reference to the component at the specified index, with bounds checking.
bool hasKeyLocator() const
Check if KeyLocator exists in SignatureInfo.
static const size_t MIN_CERT_NAME_LENGTH
name::Component getKeyId() const
Get key ID.
bool isValid(const time::system_clock::TimePoint &now=time::system_clock::now()) const
Check if now falls within the validity period.
Represents a name component.
Represents a TLV element of NDN packet format.
std::string to_string(const T &val)
Abstraction of AdditionalDescription.
tlv::SignatureTypeValue getType() const
Get SignatureType.
static const size_t MIN_KEY_NAME_LENGTH
const Block & getExtension(uint32_t type) const
Get extension with TLV type.
static const ssize_t ISSUER_ID_OFFSET
const Component & get(ssize_t i) const
Returns an immutable reference to the component at the specified index.
Copyright (c) 2011-2015 Regents of the University of California.
const Signature & getSignature() const
Get Signature.