feat: Erweiterung des IAsymCryptService-Interfaces um zusätzliche Verschlüsselungs- und Entschlüsselungsfunktionen

- Hinzugefügt: `IEnumerable<IRSADecryptor>` und `IEnumerable<IRSAEncryptor>` zum `IAsymCryptService`-Interface.
- Einführung einer `Default`-Eigenschaft für den einfachen Zugriff auf einen Standard-Entschlüsseler.
- Aktualisierung des `IAsymCryptService`-Interfaces zur Unterstützung sowohl von Entschlüsselungs- als auch Verschlüsselungsfunktionen.
This commit is contained in:
Developer 02 2024-12-16 11:41:52 +01:00
parent b32f0df125
commit f40c86ed63

View File

@ -1,10 +1,14 @@
namespace DigitalData.Core.Abstractions.Security
{
public interface IAsymCryptService : IRSAFactory
public interface IAsymCryptService : IRSAFactory, IEnumerable<IRSADecryptor>
{
public IEnumerable<IRSADecryptor> Decryptors { get; }
IEnumerable<IRSADecryptor> Decryptors { get; }
public IRSADecryptor this[string key] { get; }
IRSADecryptor Default { get; }
IRSADecryptor this[string key] { get; }
IEnumerable<IRSAEncryptor> Encryptors { get; }
}
public interface IAsymCryptService<TParams> : IAsymCryptService, IRSAFactory<TParams> { }