From 6f520732dd89e6e89397e10de912404d31d0dd6d Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Thu, 5 Dec 2024 15:22:23 +0100 Subject: [PATCH] =?UTF-8?q?refactor(AsymCryptService):=20Entschl=C3=BCssel?= =?UTF-8?q?ungsw=C3=B6rterbuch=20entfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DigitalData.Core.Security/AsymCryptService.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/DigitalData.Core.Security/AsymCryptService.cs b/DigitalData.Core.Security/AsymCryptService.cs index 3059fce..cf6f008 100644 --- a/DigitalData.Core.Security/AsymCryptService.cs +++ b/DigitalData.Core.Security/AsymCryptService.cs @@ -12,16 +12,9 @@ namespace DigitalData.Core.Security public IEnumerable Encryptors => _params.Encryptors; - private readonly Dictionary _decryptors; - - public IRSADecryptor this[string key] { get => _decryptors[key]; set => _decryptors[key] = value; } - public AsymCryptService(IOptions options, ILogger>? logger = null) : base(options) { - _decryptors = new(); logger?.LogInformation("Core.Secrets version: {Version}, Created on: {CreationDate}.", Secrets.Version, Secrets.CreationDate.ToString("dd.MM.yyyy")); } - - public bool TryGetRSADecryptor(string key, out IRSADecryptor? decryptor) => _decryptors.TryGetValue(key, out decryptor); } } \ No newline at end of file