refactor(RSATokenDescriptor): Standard-Id mit Issuer und Audience hinzugefügt.

- Issuer und Audience erforderlich gemacht.
This commit is contained in:
Developer 02
2025-01-09 23:25:17 +01:00
parent 66e3c771dd
commit 211064d44e
3 changed files with 20 additions and 13 deletions

View File

@@ -1,22 +1,16 @@
using DigitalData.Core.Abstractions.Security;
using Microsoft.IdentityModel.Tokens;
using System.Security.Cryptography;
namespace DigitalData.Core.Security.RSAKey
{
public class RSAKeyBase : IAsymmetricKey
{
public virtual string Content { get; init; }
protected virtual RSA RSA { get; } = RSA.Create();
public string Id { get; init; }
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
internal RSAKeyBase()
{
}
public virtual string Content { get; init; }
public virtual string Id { get; internal set; }
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
protected virtual RSA RSA { get; } = RSA.Create();
}
}