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;