contains options for ControlCommand execution More...
#include <nfd-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 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 39 of file nfd-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 98 of file nfd-command-options.hpp.
ndn::nfd::CommandOptions::CommandOptions | ( | ) |
constructs CommandOptions
Definition at line 35 of file nfd-command-options.cpp.
|
inline |
Definition at line 52 of file nfd-command-options.hpp.
References setTimeout().
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 nfd-command-options.cpp.
Referenced by getTimeout(), and nfd::rib::AutoPrefixPropagator::loadConfig().
|
inline |
Definition at line 68 of file nfd-command-options.hpp.
References setPrefix().
Referenced by ndn::nfd::Controller::Controller().
CommandOptions & ndn::nfd::CommandOptions::setPrefix | ( | const Name & | prefix | ) |
sets command prefix
Definition at line 53 of file nfd-command-options.cpp.
Referenced by getPrefix(), and nfd::rib::AutoPrefixPropagator::loadConfig().
|
inline |
Definition at line 82 of file nfd-command-options.hpp.
References setSigningInfo().
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 nfd-command-options.cpp.
References 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, and ndn::security::signingByIdentity().
Referenced by nfd::rib::AutoPrefixPropagator::disable(), getSigningInfo(), 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 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 177 of file nfd-command-options.hpp.
|
static |
gives the default command prefix: ndn:/localhost/nfd
Definition at line 181 of file nfd-command-options.hpp.