refactor(JwtSignatureService): Injizieren von IAsymCryptHandler anstelle von AsymCryptHandler zur Abstraktion.

This commit is contained in:
Developer 02 2025-01-06 13:13:57 +01:00
parent a2dc59d5ef
commit 4ab5393deb

View File

@ -15,9 +15,9 @@ namespace DigitalData.Core.Security
private readonly IEnumerable<TokenDescription>? _tokenDescriptions;
private readonly AsymCryptHandler _cryptHandler;
private readonly IAsymCryptHandler _cryptHandler;
public JwtSignatureService(IOptions<ClaimDescriptor<TPrincipal>> claimDescriptorOptions, IMapper mapper, IOptions<IEnumerable<TokenDescription>>? tokenDescriptionOptions, AsymCryptHandler asymCryptHandler)
public JwtSignatureService(IOptions<ClaimDescriptor<TPrincipal>> claimDescriptorOptions, IMapper mapper, IOptions<IEnumerable<TokenDescription>>? tokenDescriptionOptions, IAsymCryptHandler asymCryptHandler)
{
_claimDescriptor = claimDescriptorOptions.Value;
_mapper = mapper;