refactor(RSAFactory): Schaffung einer nicht-generischen, getrennten Schnittstelle, um eine statische Standardinstanz erstellen zu können.

- Statische Instanzklasse erstellt.
 - Geordnete DI-Registrierungsmethoden.
This commit is contained in:
Developer 02
2024-12-13 13:47:44 +01:00
parent 36f75d003a
commit 7459f05748
4 changed files with 53 additions and 11 deletions

View File

@@ -2,7 +2,7 @@
namespace DigitalData.Core.Abstractions.Security
{
public interface IRSAFactory<TParams>
public interface IRSAFactory
{
string CreateRSAPrivateKeyPem(int? keySizeInBits = null);
@@ -13,4 +13,6 @@ namespace DigitalData.Core.Abstractions.Security
HashAlgorithmName? hashAlgorithmName = null,
int? iterationCount = null);
}
public interface IRSAFactory<TParams> : IRSAFactory { }
}