From c70327e7f4936a79da79fe4bf0210d7e6f0ccd8e Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Mon, 6 Jan 2025 11:32:17 +0100 Subject: [PATCH] =?UTF-8?q?refactor(IRSADecryptor):=20Methode=20CreateSign?= =?UTF-8?q?ingCredentials=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DigitalData.Core.Abstractions/Security/IRSADecryptor.cs | 6 +++++- DigitalData.Core.Security/Cryptographer/RSADecryptor.cs | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/DigitalData.Core.Abstractions/Security/IRSADecryptor.cs b/DigitalData.Core.Abstractions/Security/IRSADecryptor.cs index 9e7ded4..ec8f069 100644 --- a/DigitalData.Core.Abstractions/Security/IRSADecryptor.cs +++ b/DigitalData.Core.Abstractions/Security/IRSADecryptor.cs @@ -1,4 +1,6 @@ -namespace DigitalData.Core.Abstractions.Security +using Microsoft.IdentityModel.Tokens; + +namespace DigitalData.Core.Abstractions.Security { public interface IRSADecryptor : IRSACryptographer { @@ -9,5 +11,7 @@ byte[] Decrypt(byte[] data); string Decrypt(string data); + + SigningCredentials CreateSigningCredentials(string algorithm = SecurityAlgorithms.RsaSha256, string? digest = null); } } \ No newline at end of file diff --git a/DigitalData.Core.Security/Cryptographer/RSADecryptor.cs b/DigitalData.Core.Security/Cryptographer/RSADecryptor.cs index d1556f4..5171684 100644 --- a/DigitalData.Core.Security/Cryptographer/RSADecryptor.cs +++ b/DigitalData.Core.Security/Cryptographer/RSADecryptor.cs @@ -1,5 +1,4 @@ using DigitalData.Core.Abstractions.Security; -using DigitalData.Core.Security.Config; using Microsoft.IdentityModel.Tokens; using System.Security.Cryptography;