![]() |
Kea 1.5.0
|
Authentication keys. More...
#include <host.h>
Public Member Functions | |
| AuthKey () | |
| Constructor. | |
| AuthKey (const std::string key) | |
| Constructor. | |
| std::string | getAuthKey () |
| return auth key | |
| bool | operator!= (const AuthKey &other) const |
| inequality operator | |
| bool | operator== (const AuthKey &other) const |
| equality operator | |
| void | setAuthKey (const std::string &key) |
| set auth key value | |
| std::string | ToText () const |
| return text format for keys | |
Static Public Member Functions | |
| static std::string | getRandomKeyString () |
| Random string is generated by default will be used for the keys to be used for signing Reconfigure Message. | |
Static Public Attributes | |
| static const uint8_t | KEY_LEN = 16 |
| Length of the key - 128 bits. | |
Authentication keys.
This class represents authentication keys to be used for calculating HMAC in the authentication field of the recofigure message
| isc::dhcp::AuthKey::AuthKey | ( | const std::string | key | ) |
Constructor.
Constructor for assigning auth keys in host reservation. Ensures the key length is not greater than 16 bytes.
| key | auth key to be stored |
Definition at line 25 of file host.cc.
References setAuthKey().
Here is the call graph for this function:| isc::dhcp::AuthKey::AuthKey | ( | void | ) |
Constructor.
Constructor for generating auth keys, with no argument. shall use the internal function for generationg random keys.
Definition at line 29 of file host.cc.
References getRandomKeyString().
Here is the call graph for this function:
|
inline |
|
static |
Random string is generated by default will be used for the keys to be used for signing Reconfigure Message.
Definition at line 34 of file host.cc.
References KEY_LEN, and isc::cryptolink::random().
Referenced by AuthKey().
Here is the call graph for this function:| bool isc::dhcp::AuthKey::operator!= | ( | const AuthKey & | other | ) | const |
| bool isc::dhcp::AuthKey::operator== | ( | const AuthKey & | other | ) | const |
| void isc::dhcp::AuthKey::setAuthKey | ( | const std::string & | key | ) |
| std::string isc::dhcp::AuthKey::ToText | ( | ) | const |
return text format for keys
Although returning member would have sufficed this is added incase in future authkey is no longer std::string
Definition at line 43 of file host.cc.
Referenced by isc::dhcp::Host::toText().
|
static |
Length of the key - 128 bits.
Definition at line 37 of file host.h.
Referenced by getRandomKeyString(), and setAuthKey().