contains options for ControlCommand execution More...
#include <command-options.hpp>
Public Types | |
enum | SigningParamsKind { SIGNING_PARAMS_DEFAULT, SIGNING_PARAMS_IDENTITY, SIGNING_PARAMS_CERTIFICATE } |
indicates the selection of signing parameters More... | |
Public Member Functions | |
CommandOptions () | |
constructs CommandOptions More... | |
const time::milliseconds & | getTimeout () const |
CommandOptions & | setTimeout (const time::milliseconds &timeout) |
sets command timeout More... | |
const Name & | getPrefix () const |
CommandOptions & | setPrefix (const Name &prefix) |
sets command prefix More... | |
const security::SigningInfo & | getSigningInfo () const |
CommandOptions & | setSigningInfo (const security::SigningInfo &signingInfo) |
sets signing parameters More... | |
DEPRECATED (SigningParamsKind getSigningParamsKind() const) | |
DEPRECATED (const Name &getSigningIdentity() const) | |
DEPRECATED (const Name &getSigningCertificate() const) | |
DEPRECATED (CommandOptions &setSigningDefault()) | |
chooses to use default identity and certificate More... | |
DEPRECATED (CommandOptions &setSigningIdentity(const Name &identityName)) | |
chooses to use a specific identity and its default certificate More... | |
DEPRECATED (CommandOptions &setSigningCertificate(const Name &certificateName)) | |
chooses to use a specific identity certificate More... | |
DEPRECATED (CommandOptions &setSigningCertificate(const security::v1::IdentityCertificate &certificate)) | |
chooses to use a specific identity certificate More... | |
Static Public Attributes | |
static const time::milliseconds | DEFAULT_TIMEOUT |
gives the default command timeout: 10000ms More... | |
static const Name | DEFAULT_PREFIX |
gives the default command prefix: ndn:/localhost/nfd More... | |
contains options for ControlCommand execution
Definition at line 43 of file command-options.hpp.
indicates the selection of signing parameters
Enumerator | |
---|---|
SIGNING_PARAMS_DEFAULT | picks the default signing identity and certificate |
SIGNING_PARAMS_IDENTITY | picks the default certificate of a specific identity Name |
SIGNING_PARAMS_CERTIFICATE | picks a specific identity certificate |
Definition at line 102 of file command-options.hpp.
ndn::nfd::CommandOptions::CommandOptions | ( | ) |
constructs CommandOptions
Definition at line 35 of file command-options.cpp.
|
inline |
Definition at line 56 of file command-options.hpp.
Referenced by ndn::nfd::Controller::Controller().
CommandOptions & ndn::nfd::CommandOptions::setTimeout | ( | const time::milliseconds & | timeout | ) |
sets command timeout
timeout | the new command timeout, must be positive |
std::out_of_range | if timeout is non-positive |
Definition at line 42 of file command-options.cpp.
Referenced by nfd::rib::AutoPrefixPropagator::loadConfig().
|
inline |
Definition at line 72 of file command-options.hpp.
Referenced by ndn::nfd::Controller::Controller().
CommandOptions & ndn::nfd::CommandOptions::setPrefix | ( | const Name & | prefix | ) |
sets command prefix
Definition at line 53 of file command-options.cpp.
Referenced by nfd::rib::AutoPrefixPropagator::loadConfig().
|
inline |
Definition at line 86 of file command-options.hpp.
Referenced by ndn::nfd::Controller::Controller(), and nfd::rib::AutoPrefixPropagator::disable().
CommandOptions & ndn::nfd::CommandOptions::setSigningInfo | ( | const security::SigningInfo & | signingInfo | ) |
sets signing parameters
Definition at line 60 of file command-options.cpp.
References ndn::Data::getName(), ndn::security::SigningInfo::getSignerName(), ndn::security::SigningInfo::getSignerType(), ndn::security::SigningInfo::SIGNER_TYPE_CERT, ndn::security::SigningInfo::SIGNER_TYPE_ID, ndn::security::SigningInfo::SIGNER_TYPE_NULL, SIGNING_PARAMS_CERTIFICATE, SIGNING_PARAMS_DEFAULT, SIGNING_PARAMS_IDENTITY, ndn::security::signingByCertificate(), ndn::security::signingByIdentity(), and ndn::Name::size().
Referenced by nfd::rib::AutoPrefixPropagator::disable(), ndn::Face::registerPrefix(), and ndn::Face::setInterestFilter().
ndn::nfd::CommandOptions::DEPRECATED | ( | SigningParamsKind getSigningParamsKind() | const | ) |
ndn::nfd::CommandOptions::DEPRECATED | ( | const Name &getSigningIdentity() | const | ) |
ndn::nfd::CommandOptions::DEPRECATED | ( | const Name &getSigningCertificate() | const | ) |
ndn::nfd::CommandOptions::DEPRECATED | ( | CommandOptions & | setSigningDefault() | ) |
chooses to use default identity and certificate
ndn::nfd::CommandOptions::DEPRECATED | ( | CommandOptions & | setSigningIdentityconst Name &identityName | ) |
chooses to use a specific identity and its default certificate
ndn::nfd::CommandOptions::DEPRECATED | ( | CommandOptions & | setSigningCertificateconst Name &certificateName | ) |
chooses to use a specific identity certificate
certificateName | identity certificate Name |
std::invalid_argument | if certificateName is invalid |
ndn::nfd::CommandOptions::DEPRECATED | ( | CommandOptions & | setSigningCertificateconst security::v1::IdentityCertificate &certificate | ) |
chooses to use a specific identity certificate
This is equivalent to .setIdentityCertificate(certificate.getName())
|
static |
gives the default command timeout: 10000ms
Definition at line 181 of file command-options.hpp.
|
static |
gives the default command prefix: ndn:/localhost/nfd
Definition at line 185 of file command-options.hpp.