Restore SEBPatch
This commit is contained in:
49
SafeExamBrowser.Settings/Browser/Proxy/ProxyConfiguration.cs
Normal file
49
SafeExamBrowser.Settings/Browser/Proxy/ProxyConfiguration.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright (c) 2024 ETH Zürich, IT Services
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
using System;
|
||||
|
||||
namespace SafeExamBrowser.Settings.Browser.Proxy
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the configuration of a proxy server.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class ProxyConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// The host name or IP address of the proxy server.
|
||||
/// </summary>
|
||||
public string Host { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The password to be used for authentication.
|
||||
/// </summary>
|
||||
public string Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The port of the proxy server.
|
||||
/// </summary>
|
||||
public int Port { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The protocol of the proxy server.
|
||||
/// </summary>
|
||||
public ProxyProtocol Protocol { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the proxy server requires authentication.
|
||||
/// </summary>
|
||||
public bool RequiresAuthentication { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The username to be used for authentication.
|
||||
/// </summary>
|
||||
public string Username { get; set; }
|
||||
}
|
||||
}
|
26
SafeExamBrowser.Settings/Browser/Proxy/ProxyPolicy.cs
Normal file
26
SafeExamBrowser.Settings/Browser/Proxy/ProxyPolicy.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2024 ETH Zürich, IT Services
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
namespace SafeExamBrowser.Settings.Browser.Proxy
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines all currently supported proxy policies for the browser.
|
||||
/// </summary>
|
||||
public enum ProxyPolicy
|
||||
{
|
||||
/// <summary>
|
||||
/// Use custom proxy settings as defined in <see cref="ProxySettings"/>.
|
||||
/// </summary>
|
||||
Custom,
|
||||
|
||||
/// <summary>
|
||||
/// Use the proxy settings of the operating system (i.e. ignore all custom settings defined in <see cref="ProxySettings"/>).
|
||||
/// </summary>
|
||||
System
|
||||
}
|
||||
}
|
21
SafeExamBrowser.Settings/Browser/Proxy/ProxyProtocol.cs
Normal file
21
SafeExamBrowser.Settings/Browser/Proxy/ProxyProtocol.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2024 ETH Zürich, IT Services
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
namespace SafeExamBrowser.Settings.Browser.Proxy
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines all protocols currently supported for proxies.
|
||||
/// </summary>
|
||||
public enum ProxyProtocol
|
||||
{
|
||||
Ftp,
|
||||
Http,
|
||||
Https,
|
||||
Socks
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user