Skip to main content

IdentityToken

Type Alias IdentityToken 

Source
pub type IdentityToken = DataHolder;
Expand description

IdentityToken (Spec §7.4.1.4 Tab.16; PKI-DH §10.3.2 Tab.51). Wird im SPDP-Announce als PID_IDENTITY_TOKEN (0x1001) verschickt.

Aliased Type§

pub struct IdentityToken {
    pub class_id: String,
    pub properties: Vec<WireProperty>,
    pub binary_properties: Vec<BinaryProperty>,
}

Fields§

§class_id: String

Plugin-Class-Id, z.B. "DDS:Auth:PKI-DH:1.2".

§properties: Vec<WireProperty>

String-Properties (Spec §7.2.6 Tab.5).

§binary_properties: Vec<BinaryProperty>

Binary-Properties (Spec §7.2.6 Tab.6).

Implementations§

Source§

impl IdentityToken

Source

pub fn pki_dh_v12( cert_sn: impl Into<String>, cert_algo: impl Into<String>, ca_sn: impl Into<String>, ca_algo: impl Into<String>, ) -> Self

Builtin-Helfer fuer den PKI-DH-IdentityToken (§10.3.2.1 Tab.51). Properties dds.cert.sn, dds.cert.algo, dds.ca.sn, dds.ca.algo. Keine binary_properties.

Source

pub fn permissions_v12( perm_ca_sn: impl Into<String>, perm_ca_algo: impl Into<String>, ) -> Self

Builtin-Helfer fuer den Permissions-Token (§10.4.2 Tab.65). class_id="DDS:Access:Permissions:1.2", properties dds.perm_ca.sn + dds.perm_ca.algo.