From f79d2e2352728e708c935b0e87f6162dda2bf5b3 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Fri, 6 Dec 2024 17:22:42 +0100 Subject: [PATCH] refactor(IRSACryptographer): IJsonOnDeserialized-Implementierung entfernt --- .../Security/IRSACryptographer.cs | 2 +- .../Cryptographer/RSACryptographer.cs | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/DigitalData.Core.Abstractions/Security/IRSACryptographer.cs b/DigitalData.Core.Abstractions/Security/IRSACryptographer.cs index 4472344..8c1f9ef 100644 --- a/DigitalData.Core.Abstractions/Security/IRSACryptographer.cs +++ b/DigitalData.Core.Abstractions/Security/IRSACryptographer.cs @@ -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; } diff --git a/DigitalData.Core.Security/Cryptographer/RSACryptographer.cs b/DigitalData.Core.Security/Cryptographer/RSACryptographer.cs index 82833b9..fc9e2ff 100644 --- a/DigitalData.Core.Security/Cryptographer/RSACryptographer.cs +++ b/DigitalData.Core.Security/Cryptographer/RSACryptographer.cs @@ -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() {