Skip to main content

PermissionsAccessControl

Struct PermissionsAccessControl 

Source
pub struct PermissionsAccessControl { /* private fields */ }
Expand description

Access-Control-Plugin: erlaubt Topics nur, wenn sie im Permissions- XML fuer den Subject-Name matchen.

Implementations§

Source§

impl PermissionsAccessControl

Source

pub fn new() -> Self

Konstruktor.

Source

pub fn register( &mut self, subject_name: String, permissions: Permissions, ) -> PermissionsHandle

Programmatischer Constructor fuer Slot — nuetzlich fuer Tests ohne PropertyList-Weg.

Trait Implementations§

Source§

impl AccessControlPlugin for PermissionsAccessControl

Source§

fn validate_local_permissions( &mut self, _local: IdentityHandle, _participant_guid: [u8; 16], props: &PropertyList, ) -> SecurityResult<PermissionsHandle>

Validiert lokale Permissions (Governance.xml + Permissions.xml Read more
Source§

fn validate_remote_permissions( &mut self, _local: IdentityHandle, _remote: IdentityHandle, remote_permissions_token: &[u8], _remote_credential: &[u8], ) -> SecurityResult<PermissionsHandle>

Validiert Remote-Permissions aus dem SEDP-Handshake. Read more
Source§

fn check_create_datawriter( &self, perms: PermissionsHandle, topic_name: &str, ) -> SecurityResult<AccessDecision>

Darf dieser Participant einen DataWriter auf diesem Topic erzeugen? Read more
Source§

fn check_create_datareader( &self, perms: PermissionsHandle, topic_name: &str, ) -> SecurityResult<AccessDecision>

Darf dieser Participant einen DataReader auf diesem Topic erzeugen? Read more
Source§

fn check_remote_datawriter_match( &self, _local: PermissionsHandle, remote: PermissionsHandle, topic_name: &str, ) -> SecurityResult<AccessDecision>

Darf der lokale Reader die Publication des Remote matchen? Read more
Source§

fn check_remote_datareader_match( &self, _local: PermissionsHandle, remote: PermissionsHandle, topic_name: &str, ) -> SecurityResult<AccessDecision>

Spiegelbildlich: darf Remote-Reader unseren Writer matchen?
Source§

fn plugin_class_id(&self) -> &str

Plugin-Class-Id (z.B. “DDS:Access:Permissions:1.2”) fuer SPDP- Annoncierung.
Source§

fn check_create_participant( &self, _local_perms: PermissionsHandle, _domain_id: u32, ) -> Result<AccessDecision, SecurityError>

Spec §9.4.2.5: check_create_participant. Default: permit (kein Plugin-spezifisches Filtern). Read more
Source§

fn check_remote_participant( &self, _local_perms: PermissionsHandle, _remote_perms: PermissionsHandle, _domain_id: u32, ) -> Result<AccessDecision, SecurityError>

Spec §9.4.2.6: check_remote_participant — darf Remote- Participant in unsere Domain joinen? Default: permit. Read more
Source§

fn check_create_topic( &self, _local_perms: PermissionsHandle, _topic_name: &str, ) -> Result<AccessDecision, SecurityError>

Spec §9.4.2.10: check_create_topic — darf der lokale Subject ein Topic mit dem Namen erzeugen? Default: permit. Read more
Source§

fn get_permissions_token( &self, _local_perms: PermissionsHandle, ) -> Result<Vec<u8>, SecurityError>

Spec §9.4.2.13: get_permissions_token — opaker Permissions-Token fuer SPDP-Annoncierung (PID_PERMISSIONS_TOKEN 0x1002). Default: leer. Read more
Source§

fn get_permissions_credential_token( &self, _local_perms: PermissionsHandle, ) -> Result<Vec<u8>, SecurityError>

Spec §9.4.2.14: get_permissions_credential_token — opake Credential, die im Authentication-Plugin via set_permissions_credential_and_token weitergereicht wird. Default: leer. Read more
Source§

impl Default for PermissionsAccessControl

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.