Options to KeyChain::makeCertificate() . More...
#include <ndn-cxx/security/key-chain.hpp>
Public Attributes | |
time::milliseconds | freshnessPeriod = 1_h |
Certificate packet FreshnessPeriod. More... | |
name::Component | issuerId = Certificate::DEFAULT_ISSUER_ID |
Certificate name IssuerId component. More... | |
optional< ValidityPeriod > | validity |
Certificate ValidityPeriod. More... | |
optional< uint64_t > | version |
Certificate name version component. More... | |
Options to KeyChain::makeCertificate() .
Definition at line 39 of file key-chain.hpp.
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.
name::Component ndn::security::MakeCertificateOptions::issuerId = Certificate::DEFAULT_ISSUER_ID |
optional<ValidityPeriod> ndn::security::MakeCertificateOptions::validity |
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.
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.