17 unsigned int get_flags()
const
22 unsigned int get_protocol()
const
27 unsigned int get_algorithm()
const
32 string get_pub_key()
const
37 void set_flags(
unsigned int flags)
42 void set_protocol(
unsigned int protocol)
47 void set_algorithm(
unsigned int algorithm)
49 _algorithm = algorithm;
52 void set_pub_key(
string pub_key)
58 _flags = key_data._flags;
59 _protocol = key_data._protocol;
60 _algorithm = key_data._algorithm;
61 _pub_key = key_data._pub_key;
71 return (_flags != 0 && _protocol != 0 && _algorithm != 0 &&
82 string get_xml_format()
const
84 return "<secDNS:keyData>"
91 "<secDNS:pubKey>" + _pub_key +
104 #endif //__KEYDATA_H__
static string to_string(const char *format, const kind &number)
Convert number to string where the format string looks like printf format.
Definition: StrUtil.H:57
String Manipulation Utilities.