diff --git a/DigitalData.Core.Security/Config/AsymCryptParams.cs b/DigitalData.Core.Security/Config/CryptographParams.cs similarity index 97% rename from DigitalData.Core.Security/Config/AsymCryptParams.cs rename to DigitalData.Core.Security/Config/CryptographParams.cs index de49a59..0c2b10b 100644 --- a/DigitalData.Core.Security/Config/AsymCryptParams.cs +++ b/DigitalData.Core.Security/Config/CryptographParams.cs @@ -2,7 +2,7 @@ namespace DigitalData.Core.Security.Config { - public class AsymCryptParams : RSAFactoryParams + public class CryptographParams : RSAFactoryParams { public string PemDirectory { get; init; } = string.Empty; @@ -43,7 +43,7 @@ namespace DigitalData.Core.Security.Config public RSAPrivateKey? VaultPrivateKey { get; init; } - public AsymCryptParams() + public CryptographParams() { // init decryptors AfterCreate += () => diff --git a/DigitalData.Core.Security/Cryptograph.cs b/DigitalData.Core.Security/Cryptograph.cs index 7cc627f..a78fb88 100644 --- a/DigitalData.Core.Security/Cryptograph.cs +++ b/DigitalData.Core.Security/Cryptograph.cs @@ -6,7 +6,7 @@ using Microsoft.Extensions.Options; namespace DigitalData.Core.Security { - public class Cryptograph : 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 Cryptograph(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 4ad5e6a..d5a2485 100644 --- a/DigitalData.Core.Security/DIExtensions.cs +++ b/DigitalData.Core.Security/DIExtensions.cs @@ -14,7 +14,7 @@ namespace DigitalData.Core.Security => services.AddSingleton, ParamsConfigureOptions>(); private static IServiceCollection AddAsymCryptHandler(this IServiceCollection services) => services - .AddParamsConfigureOptions() + .AddParamsConfigureOptions() .AddAutoMapper(typeof(MappingProfile).Assembly) .AddSingleton(); @@ -25,7 +25,7 @@ namespace DigitalData.Core.Security /// /// The updated with the RSA Factory registered. public static IServiceCollection AddAsymCryptHandler(this IServiceCollection services, IConfigurationSection section) => services - .Configure(section) + .Configure(section) .AddAsymCryptHandler(); /// @@ -33,7 +33,7 @@ namespace DigitalData.Core.Security /// /// /// The updated with the RSA Factory registered. - public static IServiceCollection AddAsymCryptHandler(this IServiceCollection services, AsymCryptParams? asymCryptParams = null) => services + public static IServiceCollection AddAsymCryptHandler(this IServiceCollection services, CryptographParams? asymCryptParams = null) => services .AddSingleton(Options.Create(asymCryptParams ?? new())) .AddAsymCryptHandler();