refactor(IRSACryptographer): IJsonOnDeserialized-Implementierung entfernt

This commit is contained in:
Developer 02 2024-12-06 17:22:42 +01:00
parent 201da81aa5
commit f79d2e2352
2 changed files with 3 additions and 8 deletions

View File

@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
namespace DigitalData.Core.Abstractions.Security
{
public interface IRSACryptographer : IJsonOnDeserialized
public interface IRSACryptographer
{
public string Pem { get; init; }

View File

@ -4,7 +4,7 @@ using System.Text.Json.Serialization;
namespace DigitalData.Core.Security.Cryptographer
{
public class RSACryptographer : IRSACryptographer, IJsonOnDeserialized
public class RSACryptographer : IRSACryptographer
{
private string? _pem;
@ -25,12 +25,7 @@ namespace DigitalData.Core.Security.Cryptographer
public string Audience { get; init; } = string.Empty;
internal RSACryptographer() { }
public void OnDeserialized()
{
Init();
}
// TODO: make file read asynchronous, consider multiple routing
public virtual void Init()
{