pub struct ConnectionConfig<'a> {
pub endpoint: &'a str,
pub server_application_uri: &'a str,
pub server_certificate_der: &'a [u8],
pub client_application_uri: &'a str,
pub client_certificate_der: &'a [u8],
pub client_private_key_der: &'a [u8],
pub timeout: Duration,
}Expand description
Endpoint and application credentials shared by all pinned user sessions. Certificate and unencrypted private key inputs use DER encoding (up to 64 KiB each).
Fields§
§endpoint: &'a strExplicit opc.tcp URL including port, e.g. opc.tcp://plc.example:4840.
server_application_uri: &'a strURI from the reviewed server identity and its certificate SAN.
server_certificate_der: &'a [u8]Exact server leaf certificate, obtained through a trusted channel.
client_application_uri: &'a strURI of the client application in its certificate SAN.
client_certificate_der: &'a [u8]Client application certificate, trusted by the selected server.
client_private_key_der: &'a [u8]Private key matching the client certificate. Its storage remains the caller’s responsibility.
timeout: DurationResponse timeout between one millisecond and 60 seconds.
Implementations§
Source§impl ConnectionConfig<'_>
impl ConnectionConfig<'_>
Sourcepub fn validate(
&self,
options: ConnectionOptions<'_>,
) -> Result<(), ConnectError>
pub fn validate( &self, options: ConnectionOptions<'_>, ) -> Result<(), ConnectError>
Validate the endpoint, user, certificate bindings and matching private key locally. This performs the same checks as a single-pin connection without dialing or resolving the host.