/// <summary> /// Initializes a new instance of tge SimpleClientAuthentication class /// </summary> /// <param name="userName">the default username</param> /// <param name="password">the default password</param> /// <param name="useSecurity">indicates whether to use security</param> public SimpleClientAuthentication(string userName, string password, bool useSecurity, bool allowAllCertificates) { this.userName = userName; this.password = password; this.useSecurity = useSecurity; ServerCertValidator = new NaivCertValidator(); hasCredentials = true; }
/// <summary> /// Initializes a new instance of tge SimpleClientAuthentication class /// </summary> public SimpleClientAuthentication(bool allowAllCertificates) { ServerCertValidator = new NaivCertValidator(); hasCredentials = false; }