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() {