openikev2::PeerConfiguration Class Reference

This class represents a per-peer configuration. More...

#include <peerconfiguration.h>

Inheritance diagram for openikev2::PeerConfiguration:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PeerConfiguration ()
 Creates a new Peer configuration with default values.
virtual void addPeerId (auto_ptr< ID > id)
 Add a peer ID to the configuration.
virtual void deletePeerId (ID &id)
 Remove a peer ID from the configuration.
virtual bool hasPeerId (const ID &id) const
 Indicates if this Peer Configuration has a peer ID.
virtual string toStringTab (uint8_t tabs) const
 Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE.

Public Attributes

Enums::ROLE_ID role
 Configuration role.
auto_ptr< IkeConfigurationike_configuration
 IKE configuration.
auto_ptr< IpsecConfigurationipsec_configuration
 IPSEC configuration.

Protected Attributes

AutoVector< IDpeer_ids
 Collection of Peer IDs having this configuration.

Friends

class Configuration

Detailed Description

This class represents a per-peer configuration.

Author:
Alejandro Perez Mendez, Pedro J. Fernandez Ruiz <alejandro_perez@dif.um.es, pedroj.fernandez@dif.um.es>


Member Function Documentation

void openikev2::PeerConfiguration::addPeerId ( auto_ptr< ID id  )  [virtual]

Add a peer ID to the configuration.

Parameters:
id ID to be added

void openikev2::PeerConfiguration::deletePeerId ( ID id  )  [virtual]

Remove a peer ID from the configuration.

Parameters:
id ID to be deleted

bool openikev2::PeerConfiguration::hasPeerId ( const ID id  )  const [virtual]

Indicates if this Peer Configuration has a peer ID.

Parameters:
id Peer ID
Returns:
TRUE if it has the peer ID. FALSE otherwise

string openikev2::PeerConfiguration::toStringTab ( uint8_t  tabs  )  const [virtual]

Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE.

Parameters:
tabs Num of tabs preceding the textual representation.
Returns:
Textual tabulated represetation of the object.

Implements openikev2::Printable.


Member Data Documentation

Enums::ROLE_ID openikev2::PeerConfiguration::role

Configuration role.

Only for initiators, responders or both.


Generated on Fri Jul 27 11:04:56 2007 for libopenikev2 by  doxygen 1.5.1