Class FtpConnectionFactory
Named connection factory for FTP/FTPS. Register it in the route registry and reference it by
name from the endpoint URI (connectionFactory=my-ftp) so the server password never has
to appear in the URI, and therefore can never reach logs, telemetry, or the dashboard.
Example:
context.AddToRegistry("partner-ftp", new FtpConnectionFactory
{
Host = "ftp.partner.com", Port = 21, UseFtps = true,
Username = "svc-drop",
Password = Environment.GetEnvironmentVariable("FTP_PASSWORD")!
});
r.From("ftp://inbox?connectionFactory=partner-ftp") // no credentials in the route
public sealed class FtpConnectionFactory : RemoteFileConnectionFactory
Inheritance
Inherited Members
Properties
ValidateCertificate
Validate the server TLS certificate (default true).
public bool ValidateCertificate { get; set; }