OpenDDS
Snapshot(2023/04/07-19:43)
|
#include <HandleRegistry.h>
Public Types | |
typedef std::pair< DCPS::GUID_t, DDS::Security::DatareaderCryptoHandle > | GUID_tDrch |
typedef std::pair< DCPS::GUID_t, DDS::Security::DatawriterCryptoHandle > | GUID_tDwch |
Private Types | |
typedef std::pair< DDS::Security::DatareaderCryptoHandle, DDS::Security::EndpointSecurityAttributes > | P1 |
typedef std::pair< DDS::Security::DatawriterCryptoHandle, DDS::Security::EndpointSecurityAttributes > | P2 |
Private Member Functions | |
typedef | OPENDDS_MAP_CMP (DCPS::GUID_t, DDS::Security::ParticipantCryptoHandle, DCPS::GUID_tKeyLessThan) ParticipantCryptoHandleMap |
typedef | OPENDDS_MAP_CMP (DCPS::GUID_t, DDS::Security::PermissionsHandle, DCPS::GUID_tKeyLessThan) PermissionsHandleMap |
typedef | OPENDDS_MAP_CMP (DCPS::GUID_t, P1, DCPS::GUID_tKeyLessThan) DatareaderCryptoHandleMap |
typedef | OPENDDS_MAP_CMP (DCPS::GUID_t, P2, DCPS::GUID_tKeyLessThan) DatawriterCryptoHandleMap |
Private Attributes | |
DDS::Security::EndpointSecurityAttributes | default_endpoint_security_attributes_ |
ACE_Thread_Mutex | mutex_ |
ParticipantCryptoHandleMap | remote_participant_crypto_handles_ |
PermissionsHandleMap | remote_participant_permissions_handles_ |
DatareaderCryptoHandleMap | local_datareader_crypto_handles_ |
DatawriterCryptoHandleMap | local_datawriter_crypto_handles_ |
DatareaderCryptoHandleMap | remote_datareader_crypto_handles_ |
DatawriterCryptoHandleMap | remote_datawriter_crypto_handles_ |
Additional Inherited Members | |
![]() | |
RcObject () | |
Definition at line 27 of file HandleRegistry.h.
typedef std::pair<DCPS::GUID_t, DDS::Security::DatareaderCryptoHandle> OpenDDS::Security::HandleRegistry::GUID_tDrch |
Definition at line 29 of file HandleRegistry.h.
typedef std::pair<DCPS::GUID_t, DDS::Security::DatawriterCryptoHandle> OpenDDS::Security::HandleRegistry::GUID_tDwch |
Definition at line 31 of file HandleRegistry.h.
|
private |
Definition at line 87 of file HandleRegistry.h.
|
private |
Definition at line 90 of file HandleRegistry.h.
OpenDDS::Security::HandleRegistry::HandleRegistry | ( | ) |
Definition at line 20 of file HandleRegistry.cpp.
References DDS::Security::EndpointSecurityAttributes::base, default_endpoint_security_attributes_, DDS::Security::TopicSecurityAttributes::is_discovery_protected, DDS::Security::EndpointSecurityAttributes::is_key_protected, DDS::Security::TopicSecurityAttributes::is_liveliness_protected, DDS::Security::EndpointSecurityAttributes::is_payload_protected, DDS::Security::TopicSecurityAttributes::is_read_protected, DDS::Security::EndpointSecurityAttributes::is_submessage_protected, DDS::Security::TopicSecurityAttributes::is_write_protected, and DDS::Security::EndpointSecurityAttributes::plugin_endpoint_attributes.
OpenDDS::Security::HandleRegistry::~HandleRegistry | ( | ) |
Definition at line 32 of file HandleRegistry.cpp.
References ACE_DEBUG, LM_DEBUG, local_datareader_crypto_handles_, local_datawriter_crypto_handles_, remote_datareader_crypto_handles_, remote_datawriter_crypto_handles_, remote_participant_crypto_handles_, and OpenDDS::DCPS::security_debug.
|
inline |
Definition at line 37 of file HandleRegistry.h.
References OPENDDS_MAP_CMP.
Referenced by OpenDDS::RTPS::Sedp::init_security().
void OpenDDS::Security::HandleRegistry::erase_local_datareader_crypto_handle | ( | const DCPS::GUID_t & | id | ) |
Definition at line 88 of file HandleRegistry.cpp.
References ACE_DEBUG, ACE_GUARD, ACE_TEXT(), LM_DEBUG, local_datareader_crypto_handles_, mutex_, and OpenDDS::DCPS::security_debug.
Referenced by OpenDDS::RTPS::Sedp::cleanup_secure_reader().
void OpenDDS::Security::HandleRegistry::erase_local_datawriter_crypto_handle | ( | const DCPS::GUID_t & | id | ) |
Definition at line 143 of file HandleRegistry.cpp.
References ACE_DEBUG, ACE_GUARD, ACE_TEXT(), LM_DEBUG, local_datawriter_crypto_handles_, mutex_, and OpenDDS::DCPS::security_debug.
Referenced by OpenDDS::RTPS::Sedp::cleanup_secure_writer().
void OpenDDS::Security::HandleRegistry::erase_remote_datareader_crypto_handle | ( | const DCPS::GUID_t & | id | ) |
Definition at line 298 of file HandleRegistry.cpp.
References ACE_DEBUG, ACE_GUARD, ACE_TEXT(), LM_DEBUG, mutex_, remote_datareader_crypto_handles_, and OpenDDS::DCPS::security_debug.
Referenced by OpenDDS::RTPS::Sedp::disassociate(), and OpenDDS::RTPS::Sedp::remove_remote_crypto_handle().
void OpenDDS::Security::HandleRegistry::erase_remote_datawriter_crypto_handle | ( | const DCPS::GUID_t & | id | ) |
Definition at line 368 of file HandleRegistry.cpp.
References ACE_DEBUG, ACE_GUARD, ACE_TEXT(), LM_DEBUG, mutex_, OPENDDS_END_VERSIONED_NAMESPACE_DECL, remote_datawriter_crypto_handles_, and OpenDDS::DCPS::security_debug.
Referenced by OpenDDS::RTPS::Sedp::disassociate(), and OpenDDS::RTPS::Sedp::remove_remote_crypto_handle().
void OpenDDS::Security::HandleRegistry::erase_remote_participant_crypto_handle | ( | const DCPS::GUID_t & | id | ) |
Definition at line 186 of file HandleRegistry.cpp.
References ACE_DEBUG, ACE_GUARD, ACE_TEXT(), LM_DEBUG, mutex_, remote_participant_crypto_handles_, and OpenDDS::DCPS::security_debug.
void OpenDDS::Security::HandleRegistry::erase_remote_participant_permissions_handle | ( | const DCPS::GUID_t & | id | ) |
Definition at line 229 of file HandleRegistry.cpp.
References ACE_DEBUG, ACE_GUARD, ACE_TEXT(), LM_DEBUG, mutex_, remote_participant_permissions_handles_, and OpenDDS::DCPS::security_debug.
HandleRegistry::DatareaderCryptoHandleList OpenDDS::Security::HandleRegistry::get_all_remote_datareaders | ( | const DCPS::GUID_t & | prefix | ) | const |
Definition at line 284 of file HandleRegistry.cpp.
References ACE_GUARD_RETURN, OpenDDS::DCPS::ENTITYID_UNKNOWN, OpenDDS::DCPS::equal_guid_prefixes(), OpenDDS::DCPS::make_id(), mutex_, and remote_datareader_crypto_handles_.
Referenced by OpenDDS::RTPS::Sedp::disassociate().
HandleRegistry::DatawriterCryptoHandleList OpenDDS::Security::HandleRegistry::get_all_remote_datawriters | ( | const DCPS::GUID_t & | prefix | ) | const |
Definition at line 354 of file HandleRegistry.cpp.
References ACE_GUARD_RETURN, OpenDDS::DCPS::ENTITYID_UNKNOWN, OpenDDS::DCPS::equal_guid_prefixes(), OpenDDS::DCPS::make_id(), mutex_, and remote_datawriter_crypto_handles_.
Referenced by OpenDDS::RTPS::Sedp::disassociate().
DDS::Security::DatareaderCryptoHandle OpenDDS::Security::HandleRegistry::get_local_datareader_crypto_handle | ( | const DCPS::GUID_t & | id | ) | const |
Definition at line 66 of file HandleRegistry.cpp.
References ACE_GUARD_RETURN, DDS::HANDLE_NIL, local_datareader_crypto_handles_, and mutex_.
Referenced by OpenDDS::RTPS::Sedp::cleanup_secure_reader(), OpenDDS::RTPS::Sedp::generate_remote_matched_writer_crypto_handle(), OpenDDS::RTPS::Sedp::handle_datawriter_crypto_tokens(), OpenDDS::RTPS::Sedp::local_has_remote_endpoint_token_i(), OpenDDS::RTPS::Sedp::match_continue_security_enabled(), OpenDDS::RTPS::Sedp::remote_has_local_endpoint_token_i(), and OpenDDS::RTPS::Sedp::resend_user_crypto_tokens().
const DDS::Security::EndpointSecurityAttributes & OpenDDS::Security::HandleRegistry::get_local_datareader_security_attributes | ( | const DCPS::GUID_t & | id | ) | const |
Definition at line 77 of file HandleRegistry.cpp.
References ACE_GUARD_RETURN, default_endpoint_security_attributes_, local_datareader_crypto_handles_, and mutex_.
Referenced by OpenDDS::RTPS::Sedp::generate_remote_matched_writer_crypto_handle(), and OpenDDS::RTPS::Sedp::match_continue_security_enabled().
DDS::Security::DatawriterCryptoHandle OpenDDS::Security::HandleRegistry::get_local_datawriter_crypto_handle | ( | const DCPS::GUID_t & | id | ) | const |
Definition at line 121 of file HandleRegistry.cpp.
References ACE_GUARD_RETURN, DDS::HANDLE_NIL, local_datawriter_crypto_handles_, and mutex_.
Referenced by OpenDDS::RTPS::Sedp::cleanup_secure_writer(), OpenDDS::RTPS::Sedp::generate_remote_matched_reader_crypto_handle(), OpenDDS::RTPS::Sedp::handle_datareader_crypto_tokens(), OpenDDS::RTPS::Sedp::local_has_remote_endpoint_token_i(), OpenDDS::RTPS::Sedp::match_continue_security_enabled(), OpenDDS::RTPS::Sedp::remote_has_local_endpoint_token_i(), and OpenDDS::RTPS::Sedp::resend_user_crypto_tokens().
const DDS::Security::EndpointSecurityAttributes & OpenDDS::Security::HandleRegistry::get_local_datawriter_security_attributes | ( | const DCPS::GUID_t & | id | ) | const |
Definition at line 132 of file HandleRegistry.cpp.
References ACE_GUARD_RETURN, default_endpoint_security_attributes_, local_datawriter_crypto_handles_, and mutex_.
Referenced by OpenDDS::RTPS::Sedp::generate_remote_matched_reader_crypto_handle(), and OpenDDS::RTPS::Sedp::match_continue_security_enabled().
DDS::Security::DatareaderCryptoHandle OpenDDS::Security::HandleRegistry::get_remote_datareader_crypto_handle | ( | const DCPS::GUID_t & | id | ) | const |
Definition at line 262 of file HandleRegistry.cpp.
References ACE_GUARD_RETURN, DDS::HANDLE_NIL, mutex_, and remote_datareader_crypto_handles_.
Referenced by OpenDDS::RTPS::Sedp::generate_remote_matched_reader_crypto_handle(), OpenDDS::RTPS::Sedp::handle_datareader_crypto_tokens(), OpenDDS::RTPS::Sedp::local_has_remote_endpoint_token_i(), OpenDDS::RTPS::Sedp::remote_has_local_endpoint_token_i(), OpenDDS::RTPS::Sedp::remove_remote_crypto_handle(), and OpenDDS::RTPS::Sedp::resend_user_crypto_tokens().
const DDS::Security::EndpointSecurityAttributes & OpenDDS::Security::HandleRegistry::get_remote_datareader_security_attributes | ( | const DCPS::GUID_t & | id | ) | const |
Definition at line 273 of file HandleRegistry.cpp.
References ACE_GUARD_RETURN, default_endpoint_security_attributes_, mutex_, and remote_datareader_crypto_handles_.
Referenced by OpenDDS::RTPS::Sedp::local_has_remote_endpoint_token_i().
DDS::Security::DatawriterCryptoHandle OpenDDS::Security::HandleRegistry::get_remote_datawriter_crypto_handle | ( | const DCPS::GUID_t & | id | ) | const |
Definition at line 332 of file HandleRegistry.cpp.
References ACE_GUARD_RETURN, DDS::HANDLE_NIL, mutex_, and remote_datawriter_crypto_handles_.
Referenced by OpenDDS::RTPS::Sedp::generate_remote_matched_writer_crypto_handle(), OpenDDS::RTPS::Sedp::handle_datawriter_crypto_tokens(), OpenDDS::RTPS::Sedp::local_has_remote_endpoint_token_i(), OpenDDS::RTPS::Sedp::remote_has_local_endpoint_token_i(), OpenDDS::RTPS::Sedp::remove_remote_crypto_handle(), and OpenDDS::RTPS::Sedp::resend_user_crypto_tokens().
const DDS::Security::EndpointSecurityAttributes & OpenDDS::Security::HandleRegistry::get_remote_datawriter_security_attributes | ( | const DCPS::GUID_t & | id | ) | const |
Definition at line 343 of file HandleRegistry.cpp.
References ACE_GUARD_RETURN, default_endpoint_security_attributes_, mutex_, and remote_datawriter_crypto_handles_.
Referenced by OpenDDS::RTPS::Sedp::local_has_remote_endpoint_token_i().
DDS::Security::ParticipantCryptoHandle OpenDDS::Security::HandleRegistry::get_remote_participant_crypto_handle | ( | const DCPS::GUID_t & | id | ) | const |
Definition at line 175 of file HandleRegistry.cpp.
References ACE_GUARD_RETURN, DDS::HANDLE_NIL, mutex_, and remote_participant_crypto_handles_.
Referenced by OpenDDS::RTPS::Sedp::local_has_remote_participant_token_i(), and OpenDDS::RTPS::Sedp::remote_has_local_participant_token_i().
DDS::Security::PermissionsHandle OpenDDS::Security::HandleRegistry::get_remote_participant_permissions_handle | ( | const DCPS::GUID_t & | id | ) | const |
Definition at line 218 of file HandleRegistry.cpp.
References ACE_GUARD_RETURN, DDS::HANDLE_NIL, mutex_, and remote_participant_permissions_handles_.
void OpenDDS::Security::HandleRegistry::insert_local_datareader_crypto_handle | ( | const DCPS::GUID_t & | id, |
DDS::Security::DatareaderCryptoHandle | handle, | ||
const DDS::Security::EndpointSecurityAttributes & | attributes | ||
) |
Definition at line 47 of file HandleRegistry.cpp.
References ACE_DEBUG, ACE_GUARD, ACE_TEXT(), DDS::HANDLE_NIL, LM_DEBUG, local_datareader_crypto_handles_, mutex_, and OpenDDS::DCPS::security_debug.
Referenced by OpenDDS::RTPS::Sedp::add_subscription(), and OpenDDS::RTPS::Sedp::init_security().
void OpenDDS::Security::HandleRegistry::insert_local_datawriter_crypto_handle | ( | const DCPS::GUID_t & | id, |
DDS::Security::DatawriterCryptoHandle | handle, | ||
const DDS::Security::EndpointSecurityAttributes & | attributes | ||
) |
Definition at line 102 of file HandleRegistry.cpp.
References ACE_DEBUG, ACE_GUARD, ACE_TEXT(), DDS::HANDLE_NIL, LM_DEBUG, local_datawriter_crypto_handles_, mutex_, and OpenDDS::DCPS::security_debug.
Referenced by OpenDDS::RTPS::Sedp::add_publication(), and OpenDDS::RTPS::Sedp::init_security().
void OpenDDS::Security::HandleRegistry::insert_remote_datareader_crypto_handle | ( | const DCPS::GUID_t & | id, |
DDS::Security::DatareaderCryptoHandle | handle, | ||
const DDS::Security::EndpointSecurityAttributes & | attributes | ||
) |
Definition at line 243 of file HandleRegistry.cpp.
References ACE_DEBUG, ACE_GUARD, ACE_TEXT(), DDS::HANDLE_NIL, LM_DEBUG, mutex_, remote_datareader_crypto_handles_, and OpenDDS::DCPS::security_debug.
Referenced by OpenDDS::RTPS::Sedp::generate_remote_matched_reader_crypto_handle().
void OpenDDS::Security::HandleRegistry::insert_remote_datawriter_crypto_handle | ( | const DCPS::GUID_t & | id, |
DDS::Security::DatawriterCryptoHandle | handle, | ||
const DDS::Security::EndpointSecurityAttributes & | attributes | ||
) |
Definition at line 312 of file HandleRegistry.cpp.
References ACE_DEBUG, ACE_GUARD, ACE_TEXT(), OpenDDS::DCPS::ENTITYID_UNKNOWN, DDS::HANDLE_NIL, LM_DEBUG, mutex_, OPENDDS_ASSERT, remote_datawriter_crypto_handles_, and OpenDDS::DCPS::security_debug.
Referenced by OpenDDS::RTPS::Sedp::generate_remote_matched_writer_crypto_handle().
void OpenDDS::Security::HandleRegistry::insert_remote_participant_crypto_handle | ( | const DCPS::GUID_t & | id, |
DDS::Security::ParticipantCryptoHandle | handle | ||
) |
Definition at line 157 of file HandleRegistry.cpp.
References ACE_DEBUG, ACE_GUARD, ACE_TEXT(), DDS::HANDLE_NIL, LM_DEBUG, mutex_, remote_participant_crypto_handles_, and OpenDDS::DCPS::security_debug.
void OpenDDS::Security::HandleRegistry::insert_remote_participant_permissions_handle | ( | const DCPS::GUID_t & | id, |
DDS::Security::PermissionsHandle | handle | ||
) |
Definition at line 200 of file HandleRegistry.cpp.
References ACE_DEBUG, ACE_GUARD, ACE_TEXT(), DDS::HANDLE_NIL, LM_DEBUG, mutex_, remote_participant_permissions_handles_, and OpenDDS::DCPS::security_debug.
|
private |
|
private |
|
private |
|
private |
typedef OpenDDS::Security::HandleRegistry::OPENDDS_VECTOR | ( | GUID_tDrch | ) |
typedef OpenDDS::Security::HandleRegistry::OPENDDS_VECTOR | ( | GUID_tDwch | ) |
|
private |
Definition at line 94 of file HandleRegistry.h.
Referenced by get_local_datareader_security_attributes(), get_local_datawriter_security_attributes(), get_remote_datareader_security_attributes(), get_remote_datawriter_security_attributes(), and HandleRegistry().
|
private |
Definition at line 100 of file HandleRegistry.h.
Referenced by erase_local_datareader_crypto_handle(), get_local_datareader_crypto_handle(), get_local_datareader_security_attributes(), insert_local_datareader_crypto_handle(), and ~HandleRegistry().
|
private |
Definition at line 101 of file HandleRegistry.h.
Referenced by erase_local_datawriter_crypto_handle(), get_local_datawriter_crypto_handle(), get_local_datawriter_security_attributes(), insert_local_datawriter_crypto_handle(), and ~HandleRegistry().
|
mutableprivate |
Definition at line 96 of file HandleRegistry.h.
Referenced by erase_local_datareader_crypto_handle(), erase_local_datawriter_crypto_handle(), erase_remote_datareader_crypto_handle(), erase_remote_datawriter_crypto_handle(), erase_remote_participant_crypto_handle(), erase_remote_participant_permissions_handle(), get_all_remote_datareaders(), get_all_remote_datawriters(), get_local_datareader_crypto_handle(), get_local_datareader_security_attributes(), get_local_datawriter_crypto_handle(), get_local_datawriter_security_attributes(), get_remote_datareader_crypto_handle(), get_remote_datareader_security_attributes(), get_remote_datawriter_crypto_handle(), get_remote_datawriter_security_attributes(), get_remote_participant_crypto_handle(), get_remote_participant_permissions_handle(), insert_local_datareader_crypto_handle(), insert_local_datawriter_crypto_handle(), insert_remote_datareader_crypto_handle(), insert_remote_datawriter_crypto_handle(), insert_remote_participant_crypto_handle(), and insert_remote_participant_permissions_handle().
|
private |
Definition at line 103 of file HandleRegistry.h.
Referenced by erase_remote_datareader_crypto_handle(), get_all_remote_datareaders(), get_remote_datareader_crypto_handle(), get_remote_datareader_security_attributes(), insert_remote_datareader_crypto_handle(), and ~HandleRegistry().
|
private |
Definition at line 104 of file HandleRegistry.h.
Referenced by erase_remote_datawriter_crypto_handle(), get_all_remote_datawriters(), get_remote_datawriter_crypto_handle(), get_remote_datawriter_security_attributes(), insert_remote_datawriter_crypto_handle(), and ~HandleRegistry().
|
private |
Definition at line 97 of file HandleRegistry.h.
Referenced by erase_remote_participant_crypto_handle(), get_remote_participant_crypto_handle(), insert_remote_participant_crypto_handle(), and ~HandleRegistry().
|
private |
Definition at line 98 of file HandleRegistry.h.
Referenced by erase_remote_participant_permissions_handle(), get_remote_participant_permissions_handle(), and insert_remote_participant_permissions_handle().