/* * Copyright (c) 2023 ETH Zürich, Educational Development and Technology (LET) * * 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.SystemComponents.Contracts { /// /// Provides information about the currently logged in user. /// public interface IUserInfo { /// /// Retrieves the name of the currently logged in user. /// string GetUserName(); /// /// Retrieves the security identifier of the currently logged in user. /// string GetUserSid(); /// /// Tries to retrieve the security identifier for the specified user name. Returns true if successful, otherwise false. /// bool TryGetSidForUser(string userName, out string sid); } }