reSIProcate/repro  9694
Public Member Functions | Private Attributes
repro::CertServer Class Reference

#include <CertServer.hxx>

Collaboration diagram for repro::CertServer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CertServer (resip::DialogUsageManager &dum)
 ~CertServer ()

Private Attributes

resip::DialogUsageManagermDum
PrivateKeySubscriptionHandler mPrivateKeyServer
PrivateKeyPublicationHandler mPrivateKeyUpdater
CertSubscriptionHandler mCertServer
CertPublicationHandler mCertUpdater

Detailed Description

Definition at line 17 of file CertServer.hxx.


Constructor & Destructor Documentation

CertServer::CertServer ( resip::DialogUsageManager dum)

Definition at line 12 of file CertServer.cxx.

                                              : 
   mDum(dum),
   mPrivateKeyServer(*mDum.getSecurity()),
   mPrivateKeyUpdater(*mDum.getSecurity()),
   mCertServer(*mDum.getSecurity()),
   mCertUpdater(*mDum.getSecurity())
{
   MasterProfile& profile = *mDum.getMasterProfile();
   profile.addSupportedMethod(PUBLISH);
   profile.addSupportedMethod(SUBSCRIBE);
   //profile.validateAcceptEnabled() = true;  // !slg! this causes Accept validation for registration requests as well, which is not really desired
   profile.validateContentEnabled() = true;
   profile.addSupportedMimeType(PUBLISH, Pkcs8Contents::getStaticType());
   profile.addSupportedMimeType(SUBSCRIBE, Pkcs8Contents::getStaticType());
   profile.addSupportedMimeType(PUBLISH, X509Contents::getStaticType());
   profile.addSupportedMimeType(SUBSCRIBE, X509Contents::getStaticType());
         
   mDum.addServerSubscriptionHandler(Symbols::Credential, &mPrivateKeyServer);
   mDum.addServerSubscriptionHandler(Symbols::Certificate, &mCertServer);
   mDum.addServerPublicationHandler(Symbols::Credential, &mPrivateKeyUpdater);
   mDum.addServerPublicationHandler(Symbols::Certificate, &mCertUpdater);
   //setServerAuthManager(std::auto_ptr<ServerAuthManager>(new ServerAuthManager(profile)));
}
CertServer::~CertServer ( )

Definition at line 36 of file CertServer.cxx.

{
}

Member Data Documentation

Definition at line 28 of file CertServer.hxx.

Definition at line 29 of file CertServer.hxx.

Definition at line 24 of file CertServer.hxx.

Definition at line 26 of file CertServer.hxx.

Definition at line 27 of file CertServer.hxx.


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