refactor(AsymCryptParams): Umbenennen in CryptographParams.

This commit is contained in:
Developer 02
2025-01-07 12:12:50 +01:00
parent 7f2d2dadfa
commit 0f4b5430a3
3 changed files with 7 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ namespace DigitalData.Core.Security
=> services.AddSingleton<IConfigureOptions<TParams>, ParamsConfigureOptions<TParams>>();
private static IServiceCollection AddAsymCryptHandler(this IServiceCollection services) => services
.AddParamsConfigureOptions<AsymCryptParams>()
.AddParamsConfigureOptions<CryptographParams>()
.AddAutoMapper(typeof(MappingProfile).Assembly)
.AddSingleton<ICryptograph, Cryptograph>();
@@ -25,7 +25,7 @@ namespace DigitalData.Core.Security
/// <param name="section"></param>
/// <returns>The updated <see cref="IServiceCollection"/> with the RSA Factory registered.</returns>
public static IServiceCollection AddAsymCryptHandler(this IServiceCollection services, IConfigurationSection section) => services
.Configure<AsymCryptParams>(section)
.Configure<CryptographParams>(section)
.AddAsymCryptHandler();
/// <summary>
@@ -33,7 +33,7 @@ namespace DigitalData.Core.Security
/// </summary>
/// <param name="services"></param>
/// <returns>The updated <see cref="IServiceCollection"/> with the RSA Factory registered.</returns>
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();