Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

propertyTsmCustomTLSClient.RequireTLS

property RequireTLS: Boolean read fRequireTLS write fRequireTLS default True;
True (the default): nothing crosses the cleartext phase except an upgrade dialogue. The public Send/SendLine/Receive/ReadLine RAISE while the connection is cleartext, except inside the protected BeginUpgradeDialogue/EndUpgradeDialogue window a descendant opens to exchange the bare minimum its protocol needs to reach StartTLS (the greeting, the capability query, the upgrade command). Only an explicit RequireTLS := False - a deliberate, visible act by the consumer - permits application traffic over cleartext. What a descendant passes THROUGH that window the base cannot check - it knows no protocol commands - so that half remains a contract: a descendant confines the window to its upgrade dialogue and refuses application data until Secure, and every descendant in this library is audited against that when the documentation is generated. TsmCustomHTTPSClient upholds the contract unconditionally: requests raise unless Secure whatever this property says. With ImplicitTLS True there is no cleartext phase and the property is moot.