Class TcpConnectionFactory
Named connection factory for TCP. Register it in the route registry and reference it by name
from the endpoint URI (connectionFactory=my-tcp) so the TLS certificate password never
has to appear in the URI, and therefore can never reach logs, telemetry, or the dashboard.
The listen/target address stays in the endpoint path — a factory carries TLS material and
timeouts only and can never silently redirect a route.
public sealed class TcpConnectionFactory
Inheritance
Properties
ClientCertPath
Producer only: PFX client certificate for a server that requires mTLS.
public string? ClientCertPath { get; set; }
SslTargetHost
Expected TLS target host name (SNI / certificate validation).
public string? SslTargetHost { get; set; }
TrustAllCertificates
Producer only: accept any server certificate, including a self-signed one.
public bool TrustAllCertificates { get; set; }