2025-11-09 12:05:07 +01:00
|
|
|
using System.Text.Json.Serialization;
|
2019-05-16 18:03:31 +02:00
|
|
|
|
|
|
|
|
namespace ElectronNET.API.Entities
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
/// <yremarks>Undecidable from MCP: no typed structure for session.clearAuthCache parameters.</yremarks>
|
2019-05-16 18:03:31 +02:00
|
|
|
public class RemovePassword
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// When provided, the authentication info related to the origin will only be
|
|
|
|
|
/// removed otherwise the entire cache will be cleared.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Origin { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Credentials of the authentication. Must be provided if removing by origin.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Password { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Realm of the authentication. Must be provided if removing by origin.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Realm { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-15 08:05:31 +01:00
|
|
|
/// Scheme of the authentication. Can be basic, digest, ntlm, negotiate.
|
2019-05-16 18:03:31 +02:00
|
|
|
/// Must be provided if removing by origin.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Scheme Scheme { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// password.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Type { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Credentials of the authentication. Must be provided if removing by origin.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Username { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="type">password.</param>
|
|
|
|
|
public RemovePassword(string type)
|
|
|
|
|
{
|
|
|
|
|
Type = type;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-11-15 08:05:31 +01:00
|
|
|
}
|