![]() |
Kea 3.0.0
|
Statistics keeping extension of the DNS TSIGKey class. More...
#include <d2_tsig_key.h>
Public Member Functions | |
| D2TsigKey (const dns::Name &key_name, const dns::Name &algorithm_name, const void *secret, size_t secret_len, size_t digestbits=0) | |
| Constructor. | |
| D2TsigKey (const std::string &key_spec) | |
| Constructor. | |
| virtual | ~D2TsigKey () |
| Destructor. | |
| virtual dns::TSIGContextPtr | createContext () |
| Create TSIG context. | |
| virtual void | resetStats () |
| Reset statistics. | |
| Public Member Functions inherited from isc::dns::TSIGKey | |
| TSIGKey (const Name &key_name, const Name &algorithm_name, const void *secret, size_t secret_len, size_t digestbits=0) | |
| Constructors, Assignment Operator and Destructor. | |
| TSIGKey (const std::string &str) | |
| Constructor from an input string. | |
| TSIGKey (const TSIGKey &source) | |
| The copy constructor. | |
| virtual | ~TSIGKey () |
| The destructor. | |
| isc::cryptolink::HashAlgorithm | getAlgorithm () const |
| Return the hash algorithm name in the form of cryptolink::HashAlgorithm. | |
| const Name & | getAlgorithmName () const |
| Return the algorithm name. | |
| size_t | getDigestbits () const |
| Return the minimum truncated length. | |
| const Name & | getKeyName () const |
| Getter Methods. | |
| const void * | getSecret () const |
| Return the value of the TSIG secret. | |
| size_t | getSecretLength () const |
| Return the length of the TSIG secret in bytes. | |
| TSIGKey & | operator= (const TSIGKey &source) |
| Assignment operator. | |
| std::string | toText () const |
| Converts the TSIGKey to a string value. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from isc::dns::TSIGKey | |
| static const Name & | GSSTSIG_NAME () |
| static const Name & | HMACMD5_NAME () |
| Well known algorithm names as defined in RFC2845 and RFC4635. | |
| static const Name & | HMACMD5_SHORT_NAME () |
| static const Name & | HMACSHA1_NAME () |
| static const Name & | HMACSHA224_NAME () |
| static const Name & | HMACSHA256_NAME () |
| static const Name & | HMACSHA384_NAME () |
| static const Name & | HMACSHA512_NAME () |
Statistics keeping extension of the DNS TSIGKey class.
Implements a TSIGKey derived class which can be used as the value of TSIGKeyPtr so with minimal or no update to the DNS++ library.
Definition at line 21 of file d2_tsig_key.h.
|
explicit |
Constructor.
Initialize the key statistics.
| key_spec | Specification of the key (name:secret[:algorithm][:digestbits]) |
Definition at line 22 of file d2_tsig_key.cc.
References isc::dns::TSIGKey::TSIGKey().
Referenced by isc::gss_tsig::GssTsigKey::GssTsigKey(), and isc::gss_tsig::GssTsigKey::GssTsigKey().
| isc::d2::D2TsigKey::D2TsigKey | ( | const dns::Name & | key_name, |
| const dns::Name & | algorithm_name, | ||
| const void * | secret, | ||
| size_t | secret_len, | ||
| size_t | digestbits = 0 ) |
Constructor.
Initialize the key statistics.
| key_name | The name of the key as a domain name. |
| algorithm_name | The hash algorithm used for this key in the form of domain name. |
| secret | Point to a binary sequence of the shared secret to be used for this key. |
| secret_len | The size of the binary data (secret) in bytes. |
| digestbits | The number of bits to include in the digest (0 means to include all) |
Definition at line 26 of file d2_tsig_key.cc.
References isc::dns::TSIGKey::TSIGKey().
|
virtual |
|
virtual |
Create TSIG context.
Reimplemented in isc::gss_tsig::ManagedKey.
Definition at line 67 of file d2_tsig_key.cc.
|
virtual |
Reset statistics.
Definition at line 57 of file d2_tsig_key.cc.
References isc::stats::StatsMgr::generateName(), isc::dns::TSIGKey::getKeyName(), isc::stats::StatsMgr::instance(), isc::d2::D2Stats::key, isc::stats::StatsMgr::reset(), and isc::dns::Name::toText().