![]() |
Kea 3.0.0
|
GSS-TSIG hook configuration. More...
#include <gss_tsig_cfg.h>
Public Member Functions | |
GssTsigCfg () | |
Constructor. | |
virtual | ~GssTsigCfg () |
Destructor. | |
void | addServer (DnsServerPtr server) |
Add a DNS server to the list. | |
void | buildServerRevMap (isc::d2::D2CfgContextPtr d2_config) |
Build the reverse map. | |
void | clearServers () |
Clear the DNS server list and reverse map. | |
void | configure (isc::data::ConstElementPtr params) |
Configure. | |
const std::string & | getClientKeyTab () const |
Get the client key table specification. | |
const std::string & | getCredsCache () const |
Get the credentials cache specification. | |
uint32_t | getMaxKeyLifetime () const |
Get the maximum TKEY lifetime. | |
DnsServerPtr | getServer (const isc::d2::DnsServerInfoPtr &server_info) const |
Get the DNS server from a server info. | |
DnsServerPtr | getServer (const std::string &id) const |
Get the DNS server from its ID. | |
const DnsServerList & | getServerList () const |
Get the DNS server list. | |
const DnsServerRevMap & | getServerRevMap () const |
Get the DNS server reverse map. | |
void | setClientKeyTab (const std::string &client_keytab) |
Set the client key table specification. | |
void | setCredsCache (const std::string &creds_cache) |
Set the credentials cache specification. | |
void | setMaxKeyLifetime (uint32_t max_tkey_lifetime) |
Set the maximum TKEY lifetime. |
Static Public Attributes | |
static const isc::data::SimpleKeywords | GLOBAL_PARAMETERS |
This table defines all global parameters. |
GSS-TSIG hook configuration.
Definition at line 430 of file gss_tsig_cfg.h.
isc::gss_tsig::GssTsigCfg::GssTsigCfg | ( | ) |
Constructor.
Definition at line 302 of file gss_tsig_cfg.cc.
|
virtual |
Destructor.
Definition at line 307 of file gss_tsig_cfg.cc.
|
inline |
Add a DNS server to the list.
server | A new DNS server to add to the list. |
Definition at line 453 of file gss_tsig_cfg.h.
Referenced by configure().
void isc::gss_tsig::GssTsigCfg::buildServerRevMap | ( | isc::d2::D2CfgContextPtr | d2_config | ) |
Build the reverse map.
d2_config | D2 configuration. |
Definition at line 330 of file gss_tsig_cfg.cc.
References getServerList(), isc::db::info, and isc_throw.
|
inline |
Clear the DNS server list and reverse map.
Definition at line 477 of file gss_tsig_cfg.h.
void isc::gss_tsig::GssTsigCfg::configure | ( | isc::data::ConstElementPtr | params | ) |
Configure.
params | A map element with parameters. |
BadValue | and similar exceptions on error. |
Definition at line 346 of file gss_tsig_cfg.cc.
References addServer(), isc::data::SimpleParser::checkKeywords(), isc::gss_tsig::DnsServer::DEFAULT_KEY_LIFETIME, isc::gss_tsig::DnsServer::DEFAULT_REKEY_INTERVAL, isc::gss_tsig::DnsServer::DEFAULT_RETRY_INTERVAL, isc::data::SimpleParser::getInteger(), getServer(), GLOBAL_PARAMETERS, isc_throw, Element::map, isc::gss_tsig::DnsServer::SERVER_PARAMETERS, setClientKeyTab(), setCredsCache(), setMaxKeyLifetime(), Element::string, isc::asiodns::IOFetch::TCP, isc::asiodns::IOFetch::UDP, and isc::Exception::what().
|
inline |
Get the client key table specification.
Definition at line 490 of file gss_tsig_cfg.h.
|
inline |
Get the credentials cache specification.
Definition at line 504 of file gss_tsig_cfg.h.
|
inline |
Get the maximum TKEY lifetime.
Definition at line 524 of file gss_tsig_cfg.h.
DnsServerPtr isc::gss_tsig::GssTsigCfg::getServer | ( | const isc::d2::DnsServerInfoPtr & | server_info | ) | const |
Get the DNS server from a server info.
server_info | The server info to find. |
Definition at line 311 of file gss_tsig_cfg.cc.
Referenced by configure().
DnsServerPtr isc::gss_tsig::GssTsigCfg::getServer | ( | const std::string & | id | ) | const |
Get the DNS server from its ID.
id | The server ID. |
Definition at line 320 of file gss_tsig_cfg.cc.
References get().
|
inline |
Get the DNS server list.
Definition at line 444 of file gss_tsig_cfg.h.
Referenced by buildServerRevMap().
|
inline |
Get the DNS server reverse map.
Definition at line 460 of file gss_tsig_cfg.h.
|
inline |
Set the client key table specification.
client_keytab | A new client key table specification. |
Definition at line 497 of file gss_tsig_cfg.h.
Referenced by configure().
|
inline |
Set the credentials cache specification.
creds_cache | A new credentials cache specification. |
Definition at line 511 of file gss_tsig_cfg.h.
Referenced by configure().
|
inline |
Set the maximum TKEY lifetime.
max_tkey_lifetime | A new maximum TKEY lifetime. |
Definition at line 531 of file gss_tsig_cfg.h.
Referenced by configure().
|
static |
This table defines all global parameters.
Definition at line 433 of file gss_tsig_cfg.h.
Referenced by configure().