diff options
Diffstat (limited to 'src/main.lib/Plugins/StorePlugins/PfxFile/PfxFileOptions.cs')
-rw-r--r-- | src/main.lib/Plugins/StorePlugins/PfxFile/PfxFileOptions.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/main.lib/Plugins/StorePlugins/PfxFile/PfxFileOptions.cs b/src/main.lib/Plugins/StorePlugins/PfxFile/PfxFileOptions.cs new file mode 100644 index 0000000..aed5bb2 --- /dev/null +++ b/src/main.lib/Plugins/StorePlugins/PfxFile/PfxFileOptions.cs @@ -0,0 +1,36 @@ +using PKISharp.WACS.Plugins.Base; +using PKISharp.WACS.Plugins.Base.Options; +using PKISharp.WACS.Services; +using PKISharp.WACS.Services.Serialization; + +namespace PKISharp.WACS.Plugins.StorePlugins +{ + [Plugin("2a2c576f-7637-4ade-b8db-e8613b0bb33e")] + internal class PfxFileOptions : StorePluginOptions<PfxFile> + { + /// <summary> + /// Path to the folder + /// </summary> + public string? Path { get; set; } + + /// <summary> + /// PfxFile password + /// </summary> + public ProtectedString? PfxPassword { get; set; } + + internal const string PluginName = "PfxFile"; + public override string Name => PluginName; + public override string Description => "PFX archive"; + + /// <summary> + /// Show details to the user + /// </summary> + /// <param name="input"></param> + public override void Show(IInputService input) + { + base.Show(input); + input.Show("Path", string.IsNullOrEmpty(Path) ? "[Default from settings.json]" : Path, level: 2); + input.Show("Password", string.IsNullOrEmpty(PfxPassword?.Value) ? "[Default from settings.json]" : new string('*', PfxPassword.Value.Length), level: 2); + } + } +} |