Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
549 changes: 546 additions & 3 deletions include/fastdds/rtps/attributes/RTPSParticipantAttributes.h

Large diffs are not rendered by default.

26 changes: 24 additions & 2 deletions include/fastdds/rtps/participant/RTPSParticipant.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,33 @@ class RTPS_DllAPI RTPSParticipant
std::vector<std::string> getParticipantNames() const;

/**
* Get a copy of the actual state of the RTPSParticipantParameters
* @return RTPSParticipantAttributes copy of the params.
* Get a reference of the current state of the RTPSParticipantAttributes.
* @warning The returned reference is not thread safe. It is recommended to use copy_attributes()
* instead to get a thread safe copy of the attributes.
* @return RTPSParticipantAttributes reference.
*/
const RTPSParticipantAttributes& getRTPSParticipantAttributes() const;

/**
* @brief Get a const reference of RTPSParticipantConstantAttributes of this RTPSParticipantImpl.
* This method is thread safe because it returns a const reference to the internal constant attributes.
* @return A const reference to the RTPSParticipantConstantAttributes of this RTPSParticipantImpl.
*/
const RTPSParticipantConstantAttributes& get_const_attributes() const;

/**
* @brief Get a const copy of RTPSParticipantMutableAttributes of this RTPSParticipantImpl.
* This method is thread safe because it returns a const copy of the internal mutable attributes.
* @return A const copy of the RTPSParticipantMutableAttributes of this RTPSParticipantImpl.
*/
const RTPSParticipantMutableAttributes get_mutable_attributes() const;

/**
* Get a copy of the current state of the RTPSParticipantAttributes.
* @return RTPSParticipantAttributes copy.
*/
RTPSParticipantAttributes copy_attributes() const;

/**
* Retrieves the maximum message size.
*/
Expand Down
4 changes: 2 additions & 2 deletions include/fastdds/rtps/security/accesscontrol/AccessControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#define _FASTDDS_RTPS_SECURITY_ACCESSCONTROL_ACCESSCONTROL_H_

#include <fastdds/rtps/security/common/Handle.h>
#include <fastdds/rtps/attributes/PropertyPolicy.h>
#include <fastdds/rtps/common/Token.h>

namespace eprosima {
Expand Down Expand Up @@ -48,7 +49,7 @@ class AccessControl
Authentication& auth_plugin,
const IdentityHandle& identity,
const uint32_t domain_id,
const RTPSParticipantAttributes& participant_attr,
const PropertyPolicy& part_props,
SecurityException& exception) = 0;

virtual bool get_permissions_token(
Expand Down Expand Up @@ -88,7 +89,6 @@ class AccessControl
virtual bool check_create_participant(
const PermissionsHandle& local_handle,
const uint32_t domain_id,
const RTPSParticipantAttributes& qos,
SecurityException& exception) = 0;

virtual bool check_remote_participant(
Expand Down
4 changes: 2 additions & 2 deletions include/fastdds/rtps/security/authentication/Authentication.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Authentication
* @param adjusted_participant_key (out) The GUID_t that the implementation shall use to uniquely identify the
* RTPSParticipant on the network.
* @param domain_id The Domain Id of the RTPSParticipant.
* @param participant_attr The RTPSParticipantAttributes of the RTPSParticipant.
* @param part_props The PropertyPolicy of the RTPSParticipant.
* @param candidate_participant_key The GUID_t that the DDS implementation would have used to uniquely identify
* the RTPSParticipant if the Security plugins were not enabled.
* @param exception (out) A SecurityException object.
Expand All @@ -79,7 +79,7 @@ class Authentication
IdentityHandle** local_identity_handle,
GUID_t& adjusted_participant_key,
const uint32_t domain_id,
const RTPSParticipantAttributes& participant_attr,
const PropertyPolicy& part_props,
const GUID_t& candidate_participant_key,
SecurityException& exception) = 0;

Expand Down
Loading
Loading