libepp_nicbr
Public Member Functions | Protected Attributes | List of all members
DSInfo Class Reference

DSInfo Class. More...

#include <DSInfo.H>

Public Member Functions

DSInfooperator= (const DSInfo &dsInfo)
 
 DSInfo ()
 Default constructor.
 
void set_key_tag (const unsigned int key_tag)
 Sets key tag. More...
 
unsigned int get_key_tag () const
 Returns the key tag. More...
 
void set_algo (const unsigned int algo)
 Sets algorithm. More...
 
unsigned int get_algo () const
 Returns the algorithm. More...
 
void set_digest_type (const unsigned int digest_type)
 Sets the digest type. More...
 
unsigned int get_digest_type () const
 Returns the digest type. More...
 
void set_digest (const string &digest)
 Sets the digest. More...
 
string get_digest () const
 Returns the digest. More...
 
void set_max_sig_life (const unsigned int max_sig_life)
 Sets the maximum signature life (deprecated by RFC5910) More...
 
unsigned int get_max_sig_life () const
 Returns the maximum signature life (deprecated by RFC5910) More...
 
void set_key_data (const KeyData &key_data)
 Sets the key data. More...
 
KeyData get_key_data () const
 Returns the key data. More...
 
bool hasKeyData () const
 Returns what it means to.
 
string get_xml_format (string secDnsVersion="1.1") const
 Returns the xml format. More...
 
void reset ()
 Reset all object attributes.
 

Protected Attributes

bool _key_tag_f
 
bool _algo_f
 
bool _digest_type_f
 
bool _digest_f
 
bool _hasKeyData
 
unsigned int _key_tag
 
unsigned int _algo
 
unsigned int _digest_type
 
string _digest
 
unsigned int _max_sig_life
 
KeyData _key_data
 

Detailed Description

DSInfo Class.

Member Function Documentation

unsigned int DSInfo::get_algo ( ) const
inline

Returns the algorithm.

Returns
algorithm
string DSInfo::get_digest ( ) const
inline

Returns the digest.

Returns
digest
unsigned int DSInfo::get_digest_type ( ) const
inline

Returns the digest type.

Returns
digest type
KeyData DSInfo::get_key_data ( ) const
inline

Returns the key data.

Returns
key data
unsigned int DSInfo::get_key_tag ( ) const
inline

Returns the key tag.

Returns
key tag
unsigned int DSInfo::get_max_sig_life ( ) const
inline

Returns the maximum signature life (deprecated by RFC5910)

Returns
maximum signature life
string DSInfo::get_xml_format ( string  secDnsVersion = "1.1") const
inline

Returns the xml format.

Returns
xml

References StrUtil::esc_xml_markup(), and StrUtil::to_string().

void DSInfo::set_algo ( const unsigned int  algo)
inline

Sets algorithm.

Parameters
algoalgorithm

Referenced by SheppObjSet::dsInfo().

void DSInfo::set_digest ( const string &  digest)
inline

Sets the digest.

Parameters
digestthe digest

Referenced by SheppObjSet::dsInfo().

void DSInfo::set_digest_type ( const unsigned int  digest_type)
inline

Sets the digest type.

Parameters
digest_typedigest type

Referenced by SheppObjSet::dsInfo().

void DSInfo::set_key_data ( const KeyData key_data)
inline

Sets the key data.

Parameters
key_datathe key data

Referenced by SheppObjSet::dsInfo().

void DSInfo::set_key_tag ( const unsigned int  key_tag)
inline

Sets key tag.

Parameters
key_tagkey_tag

Referenced by SheppObjSet::dsInfo().

void DSInfo::set_max_sig_life ( const unsigned int  max_sig_life)
inline

Sets the maximum signature life (deprecated by RFC5910)

Parameters
max_sig_lifethe maximum signature life

Referenced by SheppObjSet::dsInfo().


The documentation for this class was generated from the following file: