From 4ab5393debbc02bb65259b7284b250988e5c8d22 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Mon, 6 Jan 2025 13:13:57 +0100 Subject: [PATCH] refactor(JwtSignatureService): Injizieren von IAsymCryptHandler anstelle von AsymCryptHandler zur Abstraktion. --- DigitalData.Core.Security/JwtSignatureService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DigitalData.Core.Security/JwtSignatureService.cs b/DigitalData.Core.Security/JwtSignatureService.cs index 9bcdf4b..58e4c6c 100644 --- a/DigitalData.Core.Security/JwtSignatureService.cs +++ b/DigitalData.Core.Security/JwtSignatureService.cs @@ -15,9 +15,9 @@ namespace DigitalData.Core.Security private readonly IEnumerable? _tokenDescriptions; - private readonly AsymCryptHandler _cryptHandler; + private readonly IAsymCryptHandler _cryptHandler; - public JwtSignatureService(IOptions> claimDescriptorOptions, IMapper mapper, IOptions>? tokenDescriptionOptions, AsymCryptHandler asymCryptHandler) + public JwtSignatureService(IOptions> claimDescriptorOptions, IMapper mapper, IOptions>? tokenDescriptionOptions, IAsymCryptHandler asymCryptHandler) { _claimDescriptor = claimDescriptorOptions.Value; _mapper = mapper;