refactor(Privatekey): Die Klasse decryptor wurde erstellt und die Verschlüsselungsfunktionen für eine einfache und saubere Konfiguration dorthin verschoben.
This commit is contained in:
@@ -39,9 +39,9 @@ namespace DigitalData.Core.Security.Config
|
||||
/// </summary>
|
||||
public string DateTagFormat { get; init; } = "MM//2";
|
||||
|
||||
public IEnumerable<RSAPrivateKey> PrivateKeys { get; init; } = new List<RSAPrivateKey>();
|
||||
public IEnumerable<RSADecryptor> Decryptors { get; init; } = new List<RSADecryptor>();
|
||||
|
||||
public RSAPrivateKey? VaultPrivateKey { get; init; }
|
||||
public RSADecryptor? VaultDecryptor { get; init; }
|
||||
|
||||
public CryptographParams()
|
||||
{
|
||||
@@ -52,7 +52,7 @@ namespace DigitalData.Core.Security.Config
|
||||
if (!Directory.Exists(PemDirectory))
|
||||
Directory.CreateDirectory(PemDirectory);
|
||||
|
||||
foreach (var decryptor in PrivateKeys)
|
||||
foreach (var decryptor in Decryptors)
|
||||
{
|
||||
// set default path
|
||||
if (decryptor.IsPemNull)
|
||||
|
||||
Reference in New Issue
Block a user