From 1b00f9afa204d68e428bba6326b80a1cf7c1d682 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 20 Nov 2024 16:47:26 +0100 Subject: [PATCH] feat(CryptFactory): Der Parameter seperator der Funktionseigenschaft CryptFactory.RSAKeyNameFormatter ist jetzt nullbar. --- DigitalData.Core.Abstractions/Security/ICryptFactory.cs | 2 +- DigitalData.Core.Security/CryptFactory.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DigitalData.Core.Abstractions/Security/ICryptFactory.cs b/DigitalData.Core.Abstractions/Security/ICryptFactory.cs index 186e919..94c3109 100644 --- a/DigitalData.Core.Abstractions/Security/ICryptFactory.cs +++ b/DigitalData.Core.Abstractions/Security/ICryptFactory.cs @@ -30,7 +30,7 @@ namespace DigitalData.Core.Abstractions.Security /// An optional string separator used to separate the issuer and audience. The default is "-_-". It should not be included in the issuer or audience strings. /// A formatted string combining the issuer, audience, and separator, which adheres to valid file naming rules. /// Thrown when the issuer, audience, or separator contains invalid characters or when the separator is present within the issuer or audience. - Func RSAKeyNameFormatter { get; } + Func RSAKeyNameFormatter { get; } string CreateRSAPrivateKeyPem(int? keySizeInBits = null); diff --git a/DigitalData.Core.Security/CryptFactory.cs b/DigitalData.Core.Security/CryptFactory.cs index 87212df..d1578e8 100644 --- a/DigitalData.Core.Security/CryptFactory.cs +++ b/DigitalData.Core.Security/CryptFactory.cs @@ -10,9 +10,9 @@ namespace DigitalData.Core.Security public IRSADecryptor this[string key] { get => _decryptors[key]; set => _decryptors[key] = value; } - public Func RSAKeyNameFormatter { get; } + public Func RSAKeyNameFormatter { get; } - public CryptFactory(ILogger logger, IDictionary decryptors, Func rsaKeyNameFormatter) : base() + public CryptFactory(ILogger logger, IDictionary decryptors, Func rsaKeyNameFormatter) : base() { _decryptors = decryptors ?? new Dictionary();