activemq-cpp-3.9.0
|
The Engine class serves as a convenience class for classes in the Decaf Security package. More...
#include <src/main/decaf/internal/security/Engine.h>
Public Member Functions | |
Engine (const std::string &serviceName) | |
virtual | ~Engine () |
std::string | getServiceName () const |
Returns the name of the service type that this Engine will be a builder of SecuritySpi instances for. More... | |
const decaf::security::Provider * | getProvider () const |
Returns the Provider associated with this Engine. More... | |
decaf::security::SecuritySpi * | newInstance (const std::string &algorithmName) |
Return a new instance of the SercuritySpi implementation that is named by this engine's serviceName and the passed algorithmName. More... | |
The Engine class serves as a convenience class for classes in the Decaf Security package.
An engine can be created for a given service type, "MessageDigest" for instance and reused to create different algorithms for that type. The Engine class takes care of the details of looking up a ProviderService in the Security Runtime, using correct locking and exception handling so that the higher level classes don't need to implement that logic over again.
decaf::internal::security::Engine::Engine | ( | const std::string & | serviceName | ) |
|
virtual |
|
inline |
Returns the Provider associated with this Engine.
The pointer returned by this method remains the property of the Security framework and should be deleted by the calling application at any time.
|
inline |
Returns the name of the service type that this Engine will be a builder of SecuritySpi instances for.
decaf::security::SecuritySpi* decaf::internal::security::Engine::newInstance | ( | const std::string & | algorithmName | ) |
Return a new instance of the SercuritySpi implementation that is named by this engine's serviceName and the passed algorithmName.