pub struct EndpointSecurityInfo {
pub endpoint_security_attributes: u32,
pub plugin_endpoint_security_attributes: u32,
}Expand description
Wire-Repraesentation von PID_ENDPOINT_SECURITY_INFO.
Die rohen Masken werden unmodifiziert durchgereicht — die
Policy-Layer-Konversion (z.B. “is_submessage_protected bedeutet
ProtectionLevel::Sign/Encrypt”) sitzt im security-runtime.
Fields§
§endpoint_security_attributes: u32Standard-Endpoint-Security-Attribute (siehe attrs).
plugin_endpoint_security_attributes: u32Plugin-spezifische Endpoint-Security-Attribute (siehe
plugin_attrs).
Implementations§
Source§impl EndpointSecurityInfo
impl EndpointSecurityInfo
Sourcepub const fn is_valid(&self) -> bool
pub const fn is_valid(&self) -> bool
true wenn der Spec-konforme IS_VALID-Bit in beiden Masken
gesetzt ist. Andernfalls soll der Receiver die Werte ignorieren
(§7.4.1.5 Satz 2).
Sourcepub const fn plain() -> Self
pub const fn plain() -> Self
Builder fuer ein “plain-Legacy”-Endpoint (alle Bits 0 ausser den IS_VALID-Flags) — entspricht: der Peer unterstuetzt die Security-PID, will aber keinen Schutz fuer dieses Endpoint.
Sourcepub const fn is_submessage_protected(&self) -> bool
pub const fn is_submessage_protected(&self) -> bool
true wenn Submessage-Level-Protection gesetzt ist.
Sourcepub const fn is_payload_protected(&self) -> bool
pub const fn is_payload_protected(&self) -> bool
true wenn Payload-Level-Protection gesetzt ist.
Sourcepub const fn is_submessage_encrypted(&self) -> bool
pub const fn is_submessage_encrypted(&self) -> bool
true wenn Plugin AEAD-Encryption fuer Submessages anmeldet.
Sourcepub const fn is_submessage_origin_authenticated(&self) -> bool
pub const fn is_submessage_origin_authenticated(&self) -> bool
true wenn Plugin Origin-Authentication-Tag meldet (Stufe 7
Receiver-Specific-MACs).
Sourcepub const fn is_payload_encrypted(&self) -> bool
pub const fn is_payload_encrypted(&self) -> bool
true wenn Plugin Payload-Ciphertext meldet.
Trait Implementations§
Source§impl Clone for EndpointSecurityInfo
impl Clone for EndpointSecurityInfo
Source§fn clone(&self) -> EndpointSecurityInfo
fn clone(&self) -> EndpointSecurityInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EndpointSecurityInfo
impl Debug for EndpointSecurityInfo
Source§impl Default for EndpointSecurityInfo
impl Default for EndpointSecurityInfo
Source§fn default() -> EndpointSecurityInfo
fn default() -> EndpointSecurityInfo
Source§impl Hash for EndpointSecurityInfo
impl Hash for EndpointSecurityInfo
Source§impl PartialEq for EndpointSecurityInfo
impl PartialEq for EndpointSecurityInfo
Source§fn eq(&self, other: &EndpointSecurityInfo) -> bool
fn eq(&self, other: &EndpointSecurityInfo) -> bool
self and other values to be equal, and is used by ==.