From 60e1ec78b380165778b291ecf05fa4535ebd9cdc Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Thu, 9 Jan 2025 18:52:59 +0100 Subject: [PATCH] =?UTF-8?q?refactor(Kryptograph):=20Entfernte=20Verschl?= =?UTF-8?q?=C3=BCsselungen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DigitalData.Core.Abstractions/Security/ICryptograph.cs | 2 -- DigitalData.Core.Security/Cryptograph.cs | 6 ------ 2 files changed, 8 deletions(-) diff --git a/DigitalData.Core.Abstractions/Security/ICryptograph.cs b/DigitalData.Core.Abstractions/Security/ICryptograph.cs index 69dc8b6..a37a2c2 100644 --- a/DigitalData.Core.Abstractions/Security/ICryptograph.cs +++ b/DigitalData.Core.Abstractions/Security/ICryptograph.cs @@ -5,7 +5,5 @@ IEnumerable Decryptors { get; } IAsymmetricDecryptor VaultDecryptor { get; } - - IEnumerable Encryptors { get; } } } \ No newline at end of file diff --git a/DigitalData.Core.Security/Cryptograph.cs b/DigitalData.Core.Security/Cryptograph.cs index 24f45d9..818c784 100644 --- a/DigitalData.Core.Security/Cryptograph.cs +++ b/DigitalData.Core.Security/Cryptograph.cs @@ -15,10 +15,6 @@ namespace DigitalData.Core.Security /// public IAsymmetricDecryptor VaultDecryptor { get; } - private readonly Lazy> _lazyEncryptors; - - public IEnumerable Encryptors => _lazyEncryptors.Value; - public IEnumerable TokenDescriptors { get; init; } = new List(); public Cryptograph(IOptions options, ILogger? logger = null) : base(options) @@ -37,8 +33,6 @@ namespace DigitalData.Core.Security TokenDescriptors = _params.TokenDescriptors; VaultDecryptor = _params.VaultDecryptor ?? Decryptors.First(); - - _lazyEncryptors = new(Decryptors.Select(decryptor => decryptor.Encryptor)); } } } \ No newline at end of file