8 #ifndef OPENDDS_DCPS_SECURITY_FRAMEWORK_SECURITYCONFIG_H 9 #define OPENDDS_DCPS_SECURITY_FRAMEWORK_SECURITYCONFIG_H 12 #ifdef OPENDDS_SECURITY 21 #ifdef OPENDDS_SECURITY 25 #ifdef OPENDDS_SECURITY 26 # include <dds/DdsSecurityCoreC.h> 28 #include <dds/DdsDcpsCoreC.h> 30 #include <ace/config.h> 31 #if !defined (ACE_LACKS_PRAGMA_ONCE) 42 #ifdef OPENDDS_SECURITY 43 using DDS::Security::Authentication_var;
44 using DDS::Security::AccessControl_var;
45 using DDS::Security::CryptoKeyExchange_var;
46 using DDS::Security::CryptoKeyFactory_var;
47 using DDS::Security::CryptoTransform_var;
58 #ifdef OPENDDS_SECURITY 62 return authentication_plugin_;
67 return access_control_plugin_;
72 return key_exchange_plugin_;
77 return key_factory_plugin_;
82 return transform_plugin_;
87 return utility_plugin_;
96 HandleRegistryMap::const_iterator pos = handle_registry_map_.find(participant_id);
97 if (pos != handle_registry_map_.end()) {
98 handle_registry = pos->second;
100 handle_registry = DCPS::make_rch<HandleRegistry>();
101 handle_registry_map_[participant_id] = handle_registry;
105 ACE_TEXT(
"SecurityConfig::get_handle_registry handle_registry_map_ (total %B)\n"),
106 handle_registry_map_.size()));
110 return handle_registry;
116 handle_registry_map_.erase(participant_id);
120 ACE_TEXT(
"SecurityConfig::erase_handle_registry handle_registry_map_ (total %B)\n"),
121 handle_registry_map_.size()));
132 #ifdef OPENDDS_SECURITY
133 Authentication_var authentication_plugin,
134 AccessControl_var access_ctrl_plugin,
135 CryptoKeyExchange_var key_exchange_plugin,
136 CryptoKeyFactory_var key_factory_plugin,
137 CryptoTransform_var transform_plugin,
140 const ConfigPropertyList& properties);
145 template <
typename T,
typename U>
152 #ifdef OPENDDS_SECURITY DCPS::RcHandle< Utility > get_utility() const
#define ACE_GUARD(MUTEX, OBJ, LOCK)
#define OpenDDS_Dcps_Export
CryptoKeyExchange_var key_exchange_plugin_
ConfigPropertyList properties_
HandleRegistryMap handle_registry_map_
DCPS::RcHandle< Utility > utility_plugin_
const OPENDDS_STRING name_
CryptoKeyFactory_var key_factory_plugin_
CryptoTransform_var transform_plugin_
CryptoKeyExchange_var get_crypto_key_exchange() const
#define ACE_GUARD_RETURN(MUTEX, OBJ, LOCK, RETURN)
#define OPENDDS_MAP_CMP(K, V, C)
HandleRegistry_rch get_handle_registry(const DCPS::GUID_t &participant_id)
Authentication_var authentication_plugin_
AccessControl_var get_access_control() const
CryptoTransform_var get_crypto_transform() const
Authentication_var get_authentication() const
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
CryptoKeyFactory_var get_crypto_key_factory() const
The Internal API and Implementation of OpenDDS.
AccessControl_var access_control_plugin_
OpenDDS_Dcps_Export SecurityDebug security_debug
OPENDDS_STRING name() const
void erase_handle_registry(const DCPS::GUID_t &participant_id)