refactor(RSACryptographer): anstatt PemPath.init zu verwenden, wurden getrennte Verzeichnis- und Dateinameneigenschaften hinzugefügt

This commit is contained in:
Developer 02 2024-12-06 17:17:53 +01:00
parent bea57a25e8
commit 201da81aa5

View File

@ -8,11 +8,13 @@ namespace DigitalData.Core.Security.Cryptographer
{
private string? _pem;
private string? _pemPath;
public virtual string Pem { get => _pem; init => _pem = value; }
public string? PemPath { get => _pemPath; init => _pemPath = value; }
public string? PemPath => FileName is null ? null : Path.Combine(Directory, FileName);
public string Directory { get; init; } = string.Empty;
public string? FileName { get; init; }
public RSAEncryptionPadding Padding { get; init; } = RSAEncryptionPadding.OaepSHA256;