2018-12-21 11:36:20 +01:00
|
|
|
|
/*
|
2020-01-06 15:24:46 +01:00
|
|
|
|
* Copyright (c) 2020 ETH Zürich, Educational Development and Technology (LET)
|
2018-12-21 11:36:20 +01:00
|
|
|
|
*
|
|
|
|
|
* 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.Configuration.ConfigurationData
|
|
|
|
|
{
|
|
|
|
|
internal static class Keys
|
|
|
|
|
{
|
2019-10-01 11:30:53 +02:00
|
|
|
|
internal const int WINDOWS = 1;
|
|
|
|
|
|
2019-01-09 16:01:56 +01:00
|
|
|
|
internal static class Applications
|
2018-12-21 11:36:20 +01:00
|
|
|
|
{
|
2019-10-30 11:08:42 +01:00
|
|
|
|
internal const string Active = "active";
|
|
|
|
|
internal const string AllowCustomPath = "allowUserToChooseApp";
|
|
|
|
|
internal const string AllowRunning = "runInBackground";
|
|
|
|
|
internal const string Argument = "argument";
|
|
|
|
|
internal const string Arguments = "arguments";
|
|
|
|
|
internal const string AutoStart = "autostart";
|
|
|
|
|
internal const string AutoTerminate = "strongKill";
|
2019-10-01 11:30:53 +02:00
|
|
|
|
internal const string Blacklist = "prohibitedProcesses";
|
2019-11-06 08:45:37 +01:00
|
|
|
|
internal const string Description = "description";
|
2019-10-30 11:08:42 +01:00
|
|
|
|
internal const string DisplayName = "title";
|
|
|
|
|
internal const string ExecutableName = "executable";
|
|
|
|
|
internal const string ExecutablePath = "path";
|
|
|
|
|
internal const string OperatingSystem = "os";
|
|
|
|
|
internal const string OriginalName = "originalName";
|
|
|
|
|
internal const string ShowInShell = "iconInTaskbar";
|
2019-10-01 11:30:53 +02:00
|
|
|
|
internal const string Whitelist = "permittedProcesses";
|
2018-12-21 11:36:20 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-08-16 08:26:11 +02:00
|
|
|
|
internal static class Audio
|
|
|
|
|
{
|
|
|
|
|
internal const string InitialVolumeLevel = "audioVolumeLevel";
|
|
|
|
|
internal const string MuteAudio = "audioMute";
|
|
|
|
|
internal const string SetInitialVolumeLevel = "audioSetVolumeLevel";
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-21 11:36:20 +01:00
|
|
|
|
internal static class Browser
|
|
|
|
|
{
|
2019-01-23 14:37:24 +01:00
|
|
|
|
internal const string AllowConfigurationDownloads = "downloadAndOpenSebConfig";
|
2019-05-22 11:42:31 +02:00
|
|
|
|
internal const string AllowDeveloperConsole = "allowDeveloperConsole";
|
2019-01-23 14:37:24 +01:00
|
|
|
|
internal const string AllowDownloads = "allowDownUploads";
|
2019-01-17 11:12:17 +01:00
|
|
|
|
internal const string AllowPageZoom = "enableZoomPage";
|
2019-01-11 08:25:40 +01:00
|
|
|
|
internal const string CustomUserAgentDesktop = "browserUserAgentWinDesktopModeCustom";
|
|
|
|
|
internal const string CustomUserAgentMobile = "browserUserAgentWinTouchModeCustom";
|
2019-12-12 15:41:05 +01:00
|
|
|
|
internal const string PopupPolicy = "newBrowserWindowByLinkPolicy";
|
2019-12-13 16:10:10 +01:00
|
|
|
|
internal const string PopupBlockForeignHost = "newBrowserWindowByLinkBlockForeign";
|
2019-12-19 15:02:40 +01:00
|
|
|
|
internal const string QuitUrl = "quitURL";
|
|
|
|
|
internal const string QuitUrlConfirmation = "quitURLConfirm";
|
2020-01-08 09:55:23 +01:00
|
|
|
|
internal const string ShowToolbar = "enableBrowserWindowToolbar";
|
2020-01-10 08:54:10 +01:00
|
|
|
|
internal const string SendCustomHeaders = "sendBrowserExamKey";
|
2019-12-19 15:02:40 +01:00
|
|
|
|
internal const string StartUrl = "startURL";
|
2019-01-11 08:25:40 +01:00
|
|
|
|
internal const string UserAgentModeDesktop = "browserUserAgentWinDesktopMode";
|
|
|
|
|
internal const string UserAgentModeMobile = "browserUserAgentWinTouchMode";
|
2019-05-22 11:42:31 +02:00
|
|
|
|
|
2019-12-11 11:09:24 +01:00
|
|
|
|
internal static class AdditionalWindow
|
|
|
|
|
{
|
|
|
|
|
internal const string AllowAddressBar = "newBrowserWindowAllowAddressBar";
|
|
|
|
|
internal const string AllowNavigation = "newBrowserWindowNavigation";
|
|
|
|
|
internal const string AllowReload = "newBrowserWindowAllowReload";
|
|
|
|
|
internal const string ShowReloadWarning = "newBrowserWindowShowReloadWarning";
|
|
|
|
|
internal const string WindowHeight = "newBrowserWindowByLinkHeight";
|
|
|
|
|
internal const string WindowWidth = "newBrowserWindowByLinkWidth";
|
|
|
|
|
internal const string WindowPosition = "newBrowserWindowByLinkPositioning";
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-06 08:13:27 +02:00
|
|
|
|
internal static class Filter
|
|
|
|
|
{
|
|
|
|
|
internal const string EnableContentRequestFilter = "URLFilterEnableContentFilter";
|
|
|
|
|
internal const string EnableMainRequestFilter = "URLFilterEnable";
|
2019-12-18 08:09:59 +01:00
|
|
|
|
internal const string FilterRules = "URLFilterRules";
|
2019-09-06 08:13:27 +02:00
|
|
|
|
internal const string RuleAction = "action";
|
|
|
|
|
internal const string RuleIsActive = "active";
|
|
|
|
|
internal const string RuleExpression = "expression";
|
|
|
|
|
internal const string RuleExpressionIsRegex = "regex";
|
|
|
|
|
}
|
|
|
|
|
|
2019-05-22 11:42:31 +02:00
|
|
|
|
internal static class MainWindow
|
|
|
|
|
{
|
|
|
|
|
internal const string AllowAddressBar = "browserWindowAllowAddressBar";
|
|
|
|
|
internal const string AllowNavigation = "allowBrowsingBackForward";
|
|
|
|
|
internal const string AllowReload = "browserWindowAllowReload";
|
|
|
|
|
internal const string ShowReloadWarning = "showReloadWarning";
|
2019-12-11 11:09:24 +01:00
|
|
|
|
internal const string WindowHeight = "mainBrowserWindowHeight";
|
|
|
|
|
internal const string WindowMode = "browserViewMode";
|
|
|
|
|
internal const string WindowWidth = "mainBrowserWindowWidth";
|
|
|
|
|
internal const string WindowPosition = "mainBrowserWindowPositioning";
|
2019-05-22 11:42:31 +02:00
|
|
|
|
}
|
2019-12-18 08:09:59 +01:00
|
|
|
|
|
|
|
|
|
internal static class Proxy
|
|
|
|
|
{
|
|
|
|
|
internal const string AutoConfigure = "AutoConfigurationEnabled";
|
|
|
|
|
internal const string AutoConfigureUrl = "AutoConfigurationURL";
|
|
|
|
|
internal const string AutoDetect = "AutoDiscoveryEnabled";
|
|
|
|
|
internal const string BypassList = "ExceptionsList";
|
|
|
|
|
internal const string Policy = "proxySettingsPolicy";
|
|
|
|
|
internal const string Settings = "proxies";
|
|
|
|
|
|
|
|
|
|
internal static class Ftp
|
|
|
|
|
{
|
|
|
|
|
internal const string Enable = "FTPEnable";
|
|
|
|
|
internal const string Host = "FTPProxy";
|
|
|
|
|
internal const string Password = "FTPPassword";
|
|
|
|
|
internal const string Port = "FTPPort";
|
|
|
|
|
internal const string RequiresAuthentication = "FTPRequiresPassword";
|
|
|
|
|
internal const string Username = "FTPUsername";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static class Http
|
|
|
|
|
{
|
|
|
|
|
internal const string Enable = "HTTPEnable";
|
|
|
|
|
internal const string Host = "HTTPProxy";
|
|
|
|
|
internal const string Password = "HTTPPassword";
|
|
|
|
|
internal const string Port = "HTTPPort";
|
|
|
|
|
internal const string RequiresAuthentication = "HTTPRequiresPassword";
|
|
|
|
|
internal const string Username = "HTTPUsername";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static class Https
|
|
|
|
|
{
|
|
|
|
|
internal const string Enable = "HTTPSEnable";
|
|
|
|
|
internal const string Host = "HTTPSProxy";
|
|
|
|
|
internal const string Password = "HTTPSPassword";
|
|
|
|
|
internal const string Port = "HTTPSPort";
|
|
|
|
|
internal const string RequiresAuthentication = "HTTPSRequiresPassword";
|
|
|
|
|
internal const string Username = "HTTPSUsername";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static class Socks
|
|
|
|
|
{
|
|
|
|
|
internal const string Enable = "SOCKSEnable";
|
|
|
|
|
internal const string Host = "SOCKSProxy";
|
|
|
|
|
internal const string Password = "SOCKSPassword";
|
|
|
|
|
internal const string Port = "SOCKSPort";
|
|
|
|
|
internal const string RequiresAuthentication = "SOCKSRequiresPassword";
|
|
|
|
|
internal const string Username = "SOCKSUsername";
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-12-21 11:36:20 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-01-09 16:01:56 +01:00
|
|
|
|
internal static class ConfigurationFile
|
2018-12-21 11:36:20 +01:00
|
|
|
|
{
|
2019-12-19 15:02:40 +01:00
|
|
|
|
internal const string AdminPasswordHash = "hashedAdminPassword";
|
2019-01-09 16:01:56 +01:00
|
|
|
|
internal const string ConfigurationPurpose = "sebConfigPurpose";
|
|
|
|
|
internal const string KeepClientConfigEncryption = "clientConfigKeepEncryption";
|
2018-12-21 11:36:20 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-01-09 16:01:56 +01:00
|
|
|
|
internal static class General
|
2018-12-21 11:36:20 +01:00
|
|
|
|
{
|
2019-05-22 15:16:50 +02:00
|
|
|
|
internal const string AllowApplicationLog = "allowApplicationLog";
|
2019-01-23 08:12:15 +01:00
|
|
|
|
internal const string LogLevel = "logLevel";
|
2020-01-10 08:54:10 +01:00
|
|
|
|
internal const string OriginatorVersion = "originatorVersion";
|
2018-12-21 11:36:20 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-19 15:02:40 +01:00
|
|
|
|
internal static class Keyboard
|
2018-12-21 11:36:20 +01:00
|
|
|
|
{
|
2019-12-19 15:02:40 +01:00
|
|
|
|
internal const string EnableAltEsc = "enableAltEsc";
|
|
|
|
|
internal const string EnableAltTab = "enableAltTab";
|
|
|
|
|
internal const string EnableAltF4 = "enableAltF4";
|
|
|
|
|
internal const string EnableCtrlEsc = "enableCtrlEsc";
|
|
|
|
|
internal const string EnableEsc = "enableEsc";
|
|
|
|
|
internal const string EnableF1 = "enableF1";
|
|
|
|
|
internal const string EnableF2 = "enableF2";
|
|
|
|
|
internal const string EnableF3 = "enableF3";
|
|
|
|
|
internal const string EnableF4 = "enableF4";
|
|
|
|
|
internal const string EnableF5 = "enableF5";
|
|
|
|
|
internal const string EnableF6 = "enableF6";
|
|
|
|
|
internal const string EnableF7 = "enableF7";
|
|
|
|
|
internal const string EnableF8 = "enableF8";
|
|
|
|
|
internal const string EnableF9 = "enableF9";
|
|
|
|
|
internal const string EnableF10 = "enableF10";
|
|
|
|
|
internal const string EnableF11 = "enableF11";
|
|
|
|
|
internal const string EnableF12 = "enableF12";
|
|
|
|
|
internal const string EnablePrintScreen = "enablePrintScreen";
|
|
|
|
|
internal const string EnableSystemKey = "enableStartMenu";
|
|
|
|
|
}
|
2019-01-09 16:01:56 +01:00
|
|
|
|
|
2019-12-19 15:02:40 +01:00
|
|
|
|
internal static class Mouse
|
|
|
|
|
{
|
|
|
|
|
internal const string EnableRightMouse = "enableRightMouse";
|
2018-12-21 11:36:20 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static class Network
|
|
|
|
|
{
|
|
|
|
|
internal static class Certificates
|
|
|
|
|
{
|
|
|
|
|
internal const string CertificateData = "certificateData";
|
|
|
|
|
internal const string CertificateType = "type";
|
|
|
|
|
internal const string EmbeddedCertificates = "embeddedCertificates";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-09 16:01:56 +01:00
|
|
|
|
internal static class Security
|
2018-12-21 11:36:20 +01:00
|
|
|
|
{
|
2019-12-20 10:03:47 +01:00
|
|
|
|
internal const string AllowVirtualMachine = "allowVirtualMachine";
|
2019-03-07 08:34:47 +01:00
|
|
|
|
internal const string KioskModeCreateNewDesktop = "createNewDesktop";
|
|
|
|
|
internal const string KioskModeDisableExplorerShell = "killExplorerShell";
|
2019-12-19 15:02:40 +01:00
|
|
|
|
internal const string QuitPasswordHash = "hashedQuitPassword";
|
2019-06-11 09:53:33 +02:00
|
|
|
|
internal const string ServicePolicy = "sebServicePolicy";
|
2018-12-21 11:36:20 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-01-09 16:01:56 +01:00
|
|
|
|
internal static class UserInterface
|
2018-12-21 11:36:20 +01:00
|
|
|
|
{
|
2019-08-15 10:46:47 +02:00
|
|
|
|
internal const string ShowAudio = "audioControlEnabled";
|
2019-01-11 08:25:40 +01:00
|
|
|
|
internal const string ShowClock = "showTime";
|
2019-05-22 15:16:50 +02:00
|
|
|
|
internal const string ShowKeyboardLayout = "showInputLanguage";
|
|
|
|
|
internal const string ShowWirelessNetwork = "allowWlan";
|
2019-01-11 08:25:40 +01:00
|
|
|
|
internal const string UserInterfaceMode = "touchOptimized";
|
2019-05-22 15:16:50 +02:00
|
|
|
|
|
|
|
|
|
internal static class Taskbar
|
|
|
|
|
{
|
|
|
|
|
internal const string ShowApplicationLog = "showApplicationLogButton";
|
|
|
|
|
}
|
2018-12-21 11:36:20 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|