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. | |
| const decaf::security::Provider * | getProvider () const |
| Returns the Provider associated with this Engine. | |
| 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. | |
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 decaf::internal::security::Engine::~Engine | ( | ) | [virtual] |
| const decaf::security::Provider* decaf::internal::security::Engine::getProvider | ( | ) | const [inline] |
| std::string decaf::internal::security::Engine::getServiceName | ( | ) | const [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.
1.6.1