public FtpsOptions() : base()
 {
     this._host               = "";
     this._port               = 21;
     this._user               = "";
     this._password           = "";
     this._forceEncryption    = true;
     this._connectionMode     = FtpConnectionMode.PASSIVE;
     this._encoding           = FtpEncoding.BINARY;
     this._encryptionMode     = FtpEncryptionMode.EXPLICIT;
     this._trustStorePath     = "";
     this._trustStorePassword = "";
     this._protocol           = FtpsProtocol.TLS1_2;
     this._whiteList          = null;
 }
Exemple #2
0
        public static String valueOf(FtpsProtocol ftpsProtocol, Error error)
        {
            switch (ftpsProtocol)
            {
            case FtpsProtocol.TLS1_0:
                return("TLS1_0");

            case FtpsProtocol.TLS1_1:
                return("TLS1_1");

            case FtpsProtocol.TLS1_2:
                return("TLS1_2");

            case FtpsProtocol.SSLv2:
                return("SSLv2");

            case FtpsProtocol.SSLv3:
                return("SSLv3");

            default:
                error.setError("FP002", "Unknown protocol");
                return("");
            }
        }