7 #ifndef __REVERSE_DSINFO_H__
8 #define __REVERSE_DSINFO_H__
20 _key_tag = dsInfo._key_tag;
22 _digest_type = dsInfo._digest_type;
23 _digest = dsInfo._digest;
82 unsigned int get_algo()
const {
return _algo; }
90 _digest_type = digest_type;
123 string xml =
"<ipnetwork:dsData>"
124 "<ipnetwork:ipRange version=\"" +
126 "<ipnetwork:startAddress>" +
128 "</ipnetwork:startAddress>"
129 "<ipnetwork:endAddress>" +
131 "</ipnetwork:endAddress>"
132 "</ipnetwork:ipRange>"
134 "</ipnetwork:keyTag>"
138 "</ipnetwork:digestType>"
140 "</ipnetwork:digest>"
141 "</ipnetwork:dsData>";
158 unsigned int _key_tag;
160 unsigned int _digest_type;
166 #endif // __REVERSE_DSINFO_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
void set_ipRange(const IpRange &ipRange)
Sets ip range.
Definition: ReverseDSInfo.H:37
string get_xml_format(string secDnsVersion="") const
Returns the xml format.
Definition: ReverseDSInfo.H:121
unsigned int get_key_tag() const
Returns the key tag.
Definition: ReverseDSInfo.H:64
void set_digest(const string &digest)
Sets the digest.
Definition: ReverseDSInfo.H:103
ReverseDSInfo()
Default constructor.
Definition: ReverseDSInfo.H:28
Describes IpRange structure.
Definition: CommonData.H:192
IpRange get_ipRange() const
Returns ip range.
Definition: ReverseDSInfo.H:46
static string esc_xml_markup(const string &input_txt)
Escape &'><" characters.
void set_digest_type(const unsigned int digest_type)
Sets the digest type.
Definition: ReverseDSInfo.H:88
void set_algo(const unsigned int algo)
Sets algorithm.
Definition: ReverseDSInfo.H:73
EPP/DNSSEC DS information class.
void set_key_tag(const unsigned int key_tag)
Sets key tag.
Definition: ReverseDSInfo.H:55
unsigned int get_digest_type() const
Returns the digest type.
Definition: ReverseDSInfo.H:97
unsigned int get_algo() const
Returns the algorithm.
Definition: ReverseDSInfo.H:82
string get_digest() const
Returns the digest.
Definition: ReverseDSInfo.H:112
Reverse DSInfo Class.
Definition: ReverseDSInfo.H:16