refactor(IRSACryptographer): IJsonOnDeserialized-Implementierung entfernt
This commit is contained in:
parent
201da81aa5
commit
f79d2e2352
@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
|
|||||||
|
|
||||||
namespace DigitalData.Core.Abstractions.Security
|
namespace DigitalData.Core.Abstractions.Security
|
||||||
{
|
{
|
||||||
public interface IRSACryptographer : IJsonOnDeserialized
|
public interface IRSACryptographer
|
||||||
{
|
{
|
||||||
public string Pem { get; init; }
|
public string Pem { get; init; }
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ using System.Text.Json.Serialization;
|
|||||||
|
|
||||||
namespace DigitalData.Core.Security.Cryptographer
|
namespace DigitalData.Core.Security.Cryptographer
|
||||||
{
|
{
|
||||||
public class RSACryptographer : IRSACryptographer, IJsonOnDeserialized
|
public class RSACryptographer : IRSACryptographer
|
||||||
{
|
{
|
||||||
private string? _pem;
|
private string? _pem;
|
||||||
|
|
||||||
@ -25,12 +25,7 @@ namespace DigitalData.Core.Security.Cryptographer
|
|||||||
public string Audience { get; init; } = string.Empty;
|
public string Audience { get; init; } = string.Empty;
|
||||||
|
|
||||||
internal RSACryptographer() { }
|
internal RSACryptographer() { }
|
||||||
|
|
||||||
public void OnDeserialized()
|
|
||||||
{
|
|
||||||
Init();
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: make file read asynchronous, consider multiple routing
|
// TODO: make file read asynchronous, consider multiple routing
|
||||||
public virtual void Init()
|
public virtual void Init()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user