refactor(Kryptograph): Entfernte Verschlüsselungen.

This commit is contained in:
Developer 02 2025-01-09 18:52:59 +01:00
parent e623575fe8
commit 60e1ec78b3
2 changed files with 0 additions and 8 deletions

View File

@ -5,7 +5,5 @@
IEnumerable<IAsymmetricDecryptor> Decryptors { get; }
IAsymmetricDecryptor VaultDecryptor { get; }
IEnumerable<IAsymmetricEncryptor> Encryptors { get; }
}
}

View File

@ -15,10 +15,6 @@ namespace DigitalData.Core.Security
/// </summary>
public IAsymmetricDecryptor VaultDecryptor { get; }
private readonly Lazy<IEnumerable<IAsymmetricEncryptor>> _lazyEncryptors;
public IEnumerable<IAsymmetricEncryptor> Encryptors => _lazyEncryptors.Value;
public IEnumerable<IAsymmetricTokenDescriptor> TokenDescriptors { get; init; } = new List<IAsymmetricTokenDescriptor>();
public Cryptograph(IOptions<CryptographParams> options, ILogger<Cryptograph>? logger = null) : base(options)
@ -37,8 +33,6 @@ namespace DigitalData.Core.Security
TokenDescriptors = _params.TokenDescriptors;
VaultDecryptor = _params.VaultDecryptor ?? Decryptors.First();
_lazyEncryptors = new(Decryptors.Select(decryptor => decryptor.Encryptor));
}
}
}