diff --git a/DigitalData.Core.Security/Config/AsymCryptParams.cs b/DigitalData.Core.Security/Config/AsymCryptParams.cs index e84fe9b..219ef9a 100644 --- a/DigitalData.Core.Security/Config/AsymCryptParams.cs +++ b/DigitalData.Core.Security/Config/AsymCryptParams.cs @@ -42,8 +42,6 @@ namespace DigitalData.Core.Security.Config public IEnumerable Decryptors { get; init; } = new List(); - public IEnumerable TokenDescriptions { get; init; } = new List(); - public RSADecryptor? Vault { get; init; } public AsymCryptParams() @@ -84,19 +82,6 @@ namespace DigitalData.Core.Security.Config } } }; - - // set signing credentials of token descriptions - AfterCreate += () => - { - foreach(var tDesc in TokenDescriptions) - { - if (!Decryptors.TryGet(issuer: tDesc.Issuer, tDesc.Audience, out var decryptor)) - throw new InvalidOperationException( - $"Decryptor for Issuer '{tDesc.Issuer}' and Audience '{tDesc.Audience}' could not be found or is null."); - - tDesc.SigningCredentials = decryptor.CreateSigningCredentials(algorithm: tDesc.SigningAlgorithm, digest: tDesc.SigningDigest); - } - }; } } } \ No newline at end of file