From ac0b6f739b193587ba8d9286b26814906e5a5081 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Tue, 7 Jan 2025 12:03:01 +0100 Subject: [PATCH] refactor(AsymCryptHandler): Renamed to Cryptograph --- .../{AsymCryptHandler.cs => Cryptograph.cs} | 4 ++-- DigitalData.Core.Security/DIExtensions.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename DigitalData.Core.Security/{AsymCryptHandler.cs => Cryptograph.cs} (88%) diff --git a/DigitalData.Core.Security/AsymCryptHandler.cs b/DigitalData.Core.Security/Cryptograph.cs similarity index 88% rename from DigitalData.Core.Security/AsymCryptHandler.cs rename to DigitalData.Core.Security/Cryptograph.cs index 3dc47b7..d7340c9 100644 --- a/DigitalData.Core.Security/AsymCryptHandler.cs +++ b/DigitalData.Core.Security/Cryptograph.cs @@ -6,7 +6,7 @@ using Microsoft.Extensions.Options; namespace DigitalData.Core.Security { - public class AsymCryptHandler : RSAFactory, ICryptograph, IAsymmetricKeyFactory + public class Cryptograph : RSAFactory, ICryptograph, IAsymmetricKeyFactory { public IEnumerable PrivateKeys { get; } @@ -21,7 +21,7 @@ namespace DigitalData.Core.Security public IEnumerable TokenDescriptions { get; init; } = new List(); - public AsymCryptHandler(IOptions options, ILogger? logger = null) : base(options) + public Cryptograph(IOptions options, ILogger? logger = null) : base(options) { logger?.LogInformation("Core.Secrets version: {Version}, Created on: {CreationDate}.", Secrets.Version, Secrets.CreationDate.ToString("dd.MM.yyyy")); diff --git a/DigitalData.Core.Security/DIExtensions.cs b/DigitalData.Core.Security/DIExtensions.cs index 7faecb2..0d4d0b8 100644 --- a/DigitalData.Core.Security/DIExtensions.cs +++ b/DigitalData.Core.Security/DIExtensions.cs @@ -16,7 +16,7 @@ namespace DigitalData.Core.Security private static IServiceCollection AddAsymCryptHandler(this IServiceCollection services) => services .AddParamsConfigureOptions() .AddAutoMapper(typeof(MappingProfile).Assembly) - .AddSingleton(); + .AddSingleton(); /// /// Registers a custom asym crypt service with specified parameters from the given configuration section.