refactor(IAsymmetricKey): Umwandlung von RsaSecurityKey in SecurityKey zur besseren Abstraktion.

- RSAEncryptionPadding entfernen
 - Pem als Inhalt Content
This commit is contained in:
Developer 02
2025-01-07 16:53:05 +01:00
parent 34e14fd2f5
commit 608d266d1c
5 changed files with 14 additions and 16 deletions

View File

@@ -58,7 +58,7 @@ namespace DigitalData.Core.Security.RSAKey
public IAsymmetricPrivateKey CreatePrivateKey(string pem, string? issuer = null, string? audience = null, bool encrypt = false, RSAEncryptionPadding? padding = null) => new RSAPrivateKey()
{
Pem = pem,
Content = pem,
Issuer = issuer ?? string.Empty,
Audience = audience ?? string.Empty,
IsEncrypted = encrypt,