glooxd  0.3-svn
Public Member Functions | List of all members
Domain Class Reference

#include <domain.h>

Public Member Functions

 Domain (const std::string &name, const std::string &, unsigned short)
 ~Domain ()
void setAuthHandler (AuthenticationHandler *ah)
AuthenticationHandlerauthHandler () const
void setCertificates (const std::string &_key, const std::string &_cert)
const std::string & key () const
const std::string & cert () const

Detailed Description

An abstraction of a XMPP domain and its configuration.

Author
Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
Since
0.2

Definition at line 32 of file domain.h.

Constructor & Destructor Documentation

Domain ( const std::string &  name,
const std::string &  ,
unsigned  short 
)
inline

Constructor.

Definition at line 38 of file domain.h.

~Domain ( )
inline

Destructor.

Definition at line 46 of file domain.h.

Member Function Documentation

AuthenticationHandler* authHandler ( ) const
inline

Returns the domain's AuthenticationHandler, if any.

Returns
The domain's AuthenticationHandler, if any.

Definition at line 63 of file domain.h.

const std::string& cert ( ) const
inline

Returns the path of the public certificate file.

Returns
The server's certificate file.

Definition at line 88 of file domain.h.

const std::string& key ( ) const
inline

Returns the path of the private key file.

Returns
The server's private key file.

Definition at line 82 of file domain.h.

void setAuthHandler ( AuthenticationHandler ah)
inline

Sets the AuthenticationHandler to use for this domain. If none is set, the default AuthenticationHandler (the DomainManager's) will be used.

Parameters
ahThe AuthenticationHandler to use for this domain.

Definition at line 57 of file domain.h.

void setCertificates ( const std::string &  _key,
const std::string &  _cert 
)
inline

Sets the domain's private key, certificate, and the signing Certificate Authority's certificate (chain).

Parameters
keyThe path to the private key.
certThe path to the certificate (chain).

Definition at line 71 of file domain.h.


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