#include <configuration.h>
Inheritance diagram for openikev2::Configuration:

Public Member Functions | |
| virtual void | setGeneralConfiguration (auto_ptr< GeneralConfiguration > general_configuration) |
| Changes the GeneralConfiguration of the Configuration. | |
| virtual void | setAnonymousConfiguration (auto_ptr< PeerConfiguration > anonymous_configuration) |
| Changes the AnonymousConfiguration of the Configuration. | |
| virtual void | addPeerConfiguration (auto_ptr< PeerConfiguration > peer_configuration) |
| Adds a new PeerConfiguration to the Configuration. | |
| virtual void | deletePeerConfiguration (ID &peer_id, Enums::ROLE_ID role) |
| Deletes a PeerConfiguration. | |
| virtual auto_ptr< IpsecConfiguration > | getIpsecConfiguration (ID &peer_id, Enums::ROLE_ID role) |
| Gets a copy of the IPSEC Configuration to be applied when talking with indicated peer ID acting as indicated role. | |
| virtual auto_ptr< IkeConfiguration > | getIkeConfiguration (ID &peer_id, Enums::ROLE_ID role) |
| Gets a copy of the IKE Configuration to be applied when talking with indicated peer ID acting as indicated role. | |
| virtual auto_ptr< GeneralConfiguration > | getGeneralConfiguration () |
| Gets a copy of the GeneralConfiguration. | |
| virtual string | toStringTab (uint8_t tabs) const |
| Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE. | |
Static Public Member Functions | |
| static Configuration & | getInstance () |
| Gets the unique Singleton instance. | |
| static void | deleteConfiguration () |
| Deletes the unique Configuration instance. | |
Protected Member Functions | |
| virtual PeerConfiguration * | getPeerConfiguration (ID &peer_id, Enums::ROLE_ID role) |
| Gets a copy of the PeerConfiguration to be applied with indicated peer ID and role. | |
| Configuration () | |
| Creates a default Configuration. | |
Protected Attributes | |
| AutoVector< PeerConfiguration > | peer_configuration |
| Peer configurations. | |
| auto_ptr< PeerConfiguration > | anonymous_configuration |
| Anonymos configuration. | |
| auto_ptr< GeneralConfiguration > | general_configuration |
| General configuration. | |
| auto_ptr< Mutex > | mutex_config |
| Mutex to protect configuration accesses. | |
Static Protected Attributes | |
| static Configuration * | instance |
| Singleton unique intance. | |
It follows the Singleton design pattern.
| PeerConfiguration * openikev2::Configuration::getPeerConfiguration | ( | ID & | peer_id, | |
| Enums::ROLE_ID | role | |||
| ) | [protected, virtual] |
Gets a copy of the PeerConfiguration to be applied with indicated peer ID and role.
| peer_id | Peer ID | |
| role | Our role |
| Configuration & openikev2::Configuration::getInstance | ( | ) | [static] |
| void openikev2::Configuration::setGeneralConfiguration | ( | auto_ptr< GeneralConfiguration > | general_configuration | ) | [virtual] |
Changes the GeneralConfiguration of the Configuration.
| general_configuration | New GeneralConfiguration to be used. |
| void openikev2::Configuration::setAnonymousConfiguration | ( | auto_ptr< PeerConfiguration > | anonymous_configuration | ) | [virtual] |
Changes the AnonymousConfiguration of the Configuration.
Deletes the old one.
| anonymous_configuration | New AnonymousConfiguration. |
| void openikev2::Configuration::addPeerConfiguration | ( | auto_ptr< PeerConfiguration > | peer_configuration | ) | [virtual] |
Adds a new PeerConfiguration to the Configuration.
| peer_configuration | New PeerConfiguration to be added. |
| void openikev2::Configuration::deletePeerConfiguration | ( | ID & | peer_id, | |
| Enums::ROLE_ID | role | |||
| ) | [virtual] |
Deletes a PeerConfiguration.
If PeerConfiguration contains more than one peer ID, the indicated ID is removed from the list. If the indicated peer ID is the only one contained in the PeerConfiguration, the entire PeerConfiguration is deleted.
| peer_id | Peer ID to be removed. | |
| role | Our role. |
| auto_ptr< IpsecConfiguration > openikev2::Configuration::getIpsecConfiguration | ( | ID & | peer_id, | |
| Enums::ROLE_ID | role | |||
| ) | [virtual] |
Gets a copy of the IPSEC Configuration to be applied when talking with indicated peer ID acting as indicated role.
| peer_id | Peer ID. | |
| role | Our role. |
| auto_ptr< IkeConfiguration > openikev2::Configuration::getIkeConfiguration | ( | ID & | peer_id, | |
| Enums::ROLE_ID | role | |||
| ) | [virtual] |
Gets a copy of the IKE Configuration to be applied when talking with indicated peer ID acting as indicated role.
| peer_id | Peer ID. | |
| role | Our role. |
| auto_ptr< GeneralConfiguration > openikev2::Configuration::getGeneralConfiguration | ( | ) | [virtual] |
| string openikev2::Configuration::toStringTab | ( | uint8_t | tabs | ) | const [virtual] |
Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE.
| tabs | Num of tabs preceding the textual representation. |
Implements openikev2::Printable.
auto_ptr<PeerConfiguration> openikev2::Configuration::anonymous_configuration [protected] |
Anonymos configuration.
This is applied when there is any PeerConfiguration available for that peer
1.5.1