#include <PasswordInfos.h>
Inheritance diagram for PasswordInfos:

Public Methods | |
| PasswordInfos (unsigned int nb_elements) | |
| Constructor of the structure holding the password informations. More... | |
| PasswordInfos (const PasswordInfos &password_infos) | |
| Copy constructor of the structure holding the password informations. More... | |
| ~PasswordInfos () | |
| Destructor of the structure holding the password informations. More... | |
| string | getElement (unsigned int nth) |
| Informs of the nth elements of the password informations. More... | |
| bool | setElement (unsigned int nth, string name) |
| Defines the nth elements of the password informations. More... | |
| string & | operator[] (int nth) |
| Returns a reference to the nth elements of the password informations. More... | |
| unsigned int | getNbElements (void) const |
| Returns the number of element of the structure. More... | |
| string | getPassword (void) const |
| Returns the password of the structure. More... | |
| void | setPassword (string password) |
| Defines the password of the structure. More... | |
| string | getDescription (void) const |
| Returns the additional description. More... | |
| void | setDescription (string description) |
| Defines the additional description. More... | |
| bool | isEqualUntilLevel (PasswordInfos password_infos, int nth) |
| Check equality for each element until the nth element. More... | |
| bool | operator== (PasswordInfos &password_infos) |
| Checks if the password's structure are strictly equal. More... | |
| PasswordInfos & | operator= (const PasswordInfos &password_infos) |
| Affects the password structure to the current one. More... | |
| string | getString (char inline_separator) |
| Returns a string with all the password informations separated by the character inline_separator. More... | |
| void | print (void) |
| Display the PasswordInfos structure data in a human readable way. More... | |
| void | print (PasswordInfos fields_name) |
| Display the PasswordInfos structure data in a human readable way with field name. More... | |
It is composed by a password string, a vector of elements describing what the password is for (eg. host, service, user, etc.) and a description string to give more information if necessary.
The elements' vector will be the basis for the construction of the password tree. Each element represent a branch of the tree and the password is the leaf.
|
|
Constructor of the structure holding the password informations.
|
|
|
Copy constructor of the structure holding the password informations.
|
|
|
Destructor of the structure holding the password informations.
|
|
|
Returns the additional description.
|
|
|
Informs of the nth elements of the password informations.
|
|
|
Returns the number of element of the structure.
|
|
|
Returns the password of the structure.
|
|
|
Returns a string with all the password informations separated by the character inline_separator.
|
|
||||||||||||
|
Check equality for each element until the nth element.
|
|
|
Affects the password structure to the current one.
|
|
|
Checks if the password's structure are strictly equal.
|
|
|
Returns a reference to the nth elements of the password informations.
|
|
|
Display the PasswordInfos structure data in a human readable way with field name.
|
|
|
Display the PasswordInfos structure data in a human readable way.
|
|
|
Defines the additional description.
|
|
||||||||||||
|
Defines the nth elements of the password informations.
|
|
|
Defines the password of the structure.
|
1.2.15