NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::MakeCertificateOptions Struct Reference

Options to KeyChain::makeCertificate() . More...

#include <key-chain.hpp>

Collaboration diagram for ndn::security::MakeCertificateOptions:

Public Attributes

name::Component issuerId = Certificate::DEFAULT_ISSUER_ID
 Certificate name IssuerId component. More...
 
optional< uint64_t > version
 Certificate name version component. More...
 
time::milliseconds freshnessPeriod = 1_h
 Certificate packet FreshnessPeriod. More...
 
optional< ValidityPeriodvalidity
 Certificate ValidityPeriod. More...
 

Detailed Description

Options to KeyChain::makeCertificate() .

Definition at line 39 of file key-chain.hpp.

Member Data Documentation

◆ issuerId

name::Component ndn::security::MakeCertificateOptions::issuerId = Certificate::DEFAULT_ISSUER_ID

Certificate name IssuerId component.

Default is "NA".

Definition at line 46 of file key-chain.hpp.

Referenced by ndn::security::v2::parseLocatorUri().

◆ version

optional<uint64_t> ndn::security::MakeCertificateOptions::version

Certificate name version component.

Default is deriving from current timestamp using the logic of Name::appendVersion() .

Definition at line 53 of file key-chain.hpp.

Referenced by ndn::security::v2::parseLocatorUri().

◆ freshnessPeriod

time::milliseconds ndn::security::MakeCertificateOptions::freshnessPeriod = 1_h

Certificate packet FreshnessPeriod.

As required by the certificate format, this must be positive. Setting this to zero or negative causes std::invalid_argument exception.

Default is 1 hour.

Definition at line 63 of file key-chain.hpp.

Referenced by ndn::security::v2::parseLocatorUri().

◆ validity

optional<ValidityPeriod> ndn::security::MakeCertificateOptions::validity

Certificate ValidityPeriod.

It isn't an error to specify a ValidityPeriod that does not include the current time or has zero duration, but the certificate won't be valid.

Default is a ValidityPeriod from now until 365 days later.

Definition at line 73 of file key-chain.hpp.

Referenced by ndn::security::v2::parseLocatorUri().


The documentation for this struct was generated from the following file: