Library: NetSSL_OpenSSL
Package: SSLCore
Header: Poco/Net/PrivateKeyFactoryMgr.h
A PrivateKeyFactoryMgr manages all existing PrivateKeyFactories.
Member Functions: getFactory, hasFactory, removeFactory, setFactory
typedef std::map < std::string, Poco::SharedPtr < PrivateKeyFactory > > FactoriesMap;
Creates the PrivateKeyFactoryMgr.
Destroys the PrivateKeyFactoryMgr.
const PrivateKeyFactory * 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,
PrivateKeyFactory * pFactory
);
Registers the factory. Class takes ownership of the pointer. If a factory with the same name already exists, an exception is thrown.