diff --git a/DigitalData.Core.Abstractions/Security/IAsymCryptService.cs b/DigitalData.Core.Abstractions/Security/IAsymCryptHandler.cs similarity index 79% rename from DigitalData.Core.Abstractions/Security/IAsymCryptService.cs rename to DigitalData.Core.Abstractions/Security/IAsymCryptHandler.cs index 368b576..daacb47 100644 --- a/DigitalData.Core.Abstractions/Security/IAsymCryptService.cs +++ b/DigitalData.Core.Abstractions/Security/IAsymCryptHandler.cs @@ -1,6 +1,6 @@ namespace DigitalData.Core.Abstractions.Security { - public interface IAsymCryptService : IRSAFactory + public interface IAsymCryptHandler : IRSAFactory { IEnumerable Decryptors { get; } diff --git a/DigitalData.Core.Security/AsymCryptService.cs b/DigitalData.Core.Security/AsymCryptHandler.cs similarity index 82% rename from DigitalData.Core.Security/AsymCryptService.cs rename to DigitalData.Core.Security/AsymCryptHandler.cs index d37c5f2..a70c1f8 100644 --- a/DigitalData.Core.Security/AsymCryptService.cs +++ b/DigitalData.Core.Security/AsymCryptHandler.cs @@ -6,7 +6,7 @@ using Microsoft.Extensions.Options; namespace DigitalData.Core.Security { - public class AsymCryptService : RSAFactory, IAsymCryptService, IRSAFactory + public class AsymCryptHandler : RSAFactory, IAsymCryptHandler, IRSAFactory { public IEnumerable Decryptors { get; } @@ -19,7 +19,9 @@ namespace DigitalData.Core.Security public IEnumerable Encryptors => _lazyEncryptors.Value; - public AsymCryptService(IOptions options, ILogger? logger = null) : base(options) + public IEnumerable TokenDescriptions { get; init; } = new List(); + + public AsymCryptHandler(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/Config/AsymCryptParams.cs b/DigitalData.Core.Security/Config/AsymCryptParams.cs index 85a1bb4..e84fe9b 100644 --- a/DigitalData.Core.Security/Config/AsymCryptParams.cs +++ b/DigitalData.Core.Security/Config/AsymCryptParams.cs @@ -23,20 +23,6 @@ namespace DigitalData.Core.Security.Config public string FileExtension { get; init; } = "pem"; - /// - /// Represents the separator used to concatenate the components of a key-related token string. - /// - /// - /// The resulting key-related token string is constructed as follows: - /// string.Join(KeyNameSeparator, Issuer, Audience, Secret_version). - /// If Secret_version is not null, it will be included in the concatenation. - /// - /// - /// For example, if KeyNameSeparator = ":", the output might look like: - /// "Issuer:Audience:Secret_version". - /// - public string KeyNameSeparator { get; init; } = ":"; - /// ///This is the subtext of the pem file name. For the file to be automatically renewed, the name must be assigned to change periodically. For example, by default MM/2 will be refreshed every 2 months. ///
diff --git a/DigitalData.Core.Security/DIExtensions.cs b/DigitalData.Core.Security/DIExtensions.cs index 70f1b5c..cd8571f 100644 --- a/DigitalData.Core.Security/DIExtensions.cs +++ b/DigitalData.Core.Security/DIExtensions.cs @@ -16,7 +16,7 @@ namespace DigitalData.Core.Security private static IServiceCollection AddAsymCryptService(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.