CSingletonLDAPConnection Class Reference

#include <CSingletonLDAPConnection.h>

Collaboration diagram for CSingletonLDAPConnection:

Collaboration graph
[legend]

List of all members.


Detailed Description

This is a singleton LDAP connection class

TSP-enforcing: No

Definition at line 43 of file CSingletonLDAPConnection.h.


Public Member Functions

 ~CSingletonLDAPConnection ()
void PushConnection (std::string &host, int port, LDAP *ldap)
LDAP * GetConnection (std::string &host, int port)

Static Public Member Functions

static CSingletonLDAPConnectionInstance ()
static void CSingletonLDAPConnectionDestructor ()

Constructor & Destructor Documentation

CSingletonLDAPConnection::~CSingletonLDAPConnection (  ) 

Interface: Subsystem

Defaut destructor for CSingletonLDAPConnection class

Returns:
None

Definition at line 241 of file CSingletonLDAPConnection.cpp.


Member Function Documentation

CSingletonLDAPConnection * CSingletonLDAPConnection::Instance (  )  [static]

Interface: Subsystem

This function returns an instance of CSingletonLDAPConnection class

Returns:
None

Definition at line 225 of file CSingletonLDAPConnection.cpp.

Referenced by GetCertfromLDAPURL(), and GetCRLfromLDAPURL().

void CSingletonLDAPConnection::PushConnection ( std::string &  host,
int  port,
LDAP *  ldap 
)

Interface: Subsystem

This function adds LDAP connection inforlation to the list maintained by CSingletonLDAPConnection class

Returns:
None
Parameters:
host  [in] std::string containing the ldap host name
port  [in] Integer identifying the port number
ldap  [in] Pointer to LDAP structure

Definition at line 261 of file CSingletonLDAPConnection.cpp.

References CLDAPConnectionInfo::m_connection, CLDAPConnectionInfo::m_host, and CLDAPConnectionInfo::m_port.

Referenced by GetCertfromLDAPURL(), and GetCRLfromLDAPURL().

LDAP * CSingletonLDAPConnection::GetConnection ( std::string &  host,
int  port 
)

Interface: Subsystem

This function returns a pointer to LDAP structure which corresponds to the hostname and port

Returns:
A pointre to LDAP structure
Parameters:
host  [in] std::string containing the ldap host name
port  [in] Integer identifying the port number

Definition at line 292 of file CSingletonLDAPConnection.cpp.

Referenced by GetCertfromLDAPURL(), and GetCRLfromLDAPURL().

void CSingletonLDAPConnection::CSingletonLDAPConnectionDestructor (  )  [static]

Interface: Subsystem

This function destroys the CSingletonLDAPConnection instance in will be called then PKIF dll is unloaded.

Returns:
None

Definition at line 314 of file CSingletonLDAPConnection.cpp.

Referenced by CSingletonLDAPConnectionCleaner::~CSingletonLDAPConnectionCleaner().


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

Generated on Mon Nov 15 11:20:52 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6