activemq-cpp-3.9.0
decaf::security::ProviderService Class Referenceabstract

#include <src/main/decaf/security/ProviderService.h>

Inheritance diagram for decaf::security::ProviderService:

Public Member Functions

 ProviderService (const Provider *provider, const std::string &type, const std::string &algorithm)
 
virtual ~ProviderService ()
 
std::string getType () const
 Gets the type of service this ProviderService instance supports. More...
 
std::string getAlgorithm () const
 Gets the algorithm name that this ProviderService supplies for its service type. More...
 
const ProvidergetProvider () const
 Returns a pointer to the Provider that owns this ProviderService. More...
 
virtual SecuritySpinewInstance ()=0
 Return a new instance of the implementation described by this service. More...
 
std::string toString () const
 Return a String representation of this service. More...
 

Constructor & Destructor Documentation

decaf::security::ProviderService::ProviderService ( const Provider provider,
const std::string &  type,
const std::string &  algorithm 
)
virtual decaf::security::ProviderService::~ProviderService ( )
virtual

Member Function Documentation

std::string decaf::security::ProviderService::getAlgorithm ( ) const
inline

Gets the algorithm name that this ProviderService supplies for its service type.

Returns
the algorithm this ProviderService supports.
const Provider* decaf::security::ProviderService::getProvider ( ) const
inline

Returns a pointer to the Provider that owns this ProviderService.

The returned pointer is owned by the Security framework an should not be deleted by the caller at any time.

Returns
pointer to the security provider that owns this service.
std::string decaf::security::ProviderService::getType ( ) const
inline

Gets the type of service this ProviderService instance supports.

Returns
type name of the service this ProviderService supports.
virtual SecuritySpi* decaf::security::ProviderService::newInstance ( )
pure virtual

Return a new instance of the implementation described by this service.

The security provider framework uses this method to construct implementations. Applications will typically not need to call it.

Returns
a new instance of the SecuritySpi provided by this ProviderService.

Implemented in decaf::internal::security::provider::DefaultMessageDigestProviderService, and decaf::internal::security::provider::DefaultSecureRandomProviderService.

std::string decaf::security::ProviderService::toString ( ) const
inline

Return a String representation of this service.

The format of this string is always, "type.algorithm"

Returns
string describing this ProviderService.

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