Library: NetSSL_OpenSSL
Package: SSLCore
Header: Poco/Net/CertificateHandlerFactoryMgr.h
A CertificateHandlerFactoryMgr manages all existing CertificateHandlerFactories.
Member Functions: getFactory, hasFactory, removeFactory, setFactory
typedef std::map < std::string, Poco::SharedPtr < CertificateHandlerFactory > > FactoriesMap;
CertificateHandlerFactoryMgr();
Creates the CertificateHandlerFactoryMgr.
~CertificateHandlerFactoryMgr();
Destroys the CertificateHandlerFactoryMgr.
const CertificateHandlerFactory * getFactory(
const std::string & name
) const;
Returns NULL if for the given name a factory does not exist, otherwise the factory is returned
bool hasFactory(
const std::string & name
) const;
Returns true if for the given name a factory is already registered
void removeFactory(
const std::string & name
);
Removes the factory from the manager.
void setFactory(
const std::string & name,
CertificateHandlerFactory * pFactory
);
Registers the factory. Class takes ownership of the pointer. If a factory with the same name already exists, an exception is thrown.