1 implementation of IDefaultKeyResolver
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\DefaultKeyResolver.cs (1)
21internal sealed class DefaultKeyResolver : IDefaultKeyResolver
24 references to IDefaultKeyResolver
Microsoft.AspNetCore.DataProtection (4)
DataProtectionServiceCollectionExtensions.cs (1)
80services.TryAddSingleton<IDefaultKeyResolver, DefaultKeyResolver>();
KeyManagement\KeyRingProvider.cs (3)
25private readonly IDefaultKeyResolver _defaultKeyResolver; 35IDefaultKeyResolver defaultKeyResolver) 47IDefaultKeyResolver defaultKeyResolver,
Microsoft.AspNetCore.DataProtection.Tests (20)
KeyManagement\DefaultKeyResolverTests.cs (18)
20var resolver = CreateDefaultKeyResolver(); 34var resolver = CreateDefaultKeyResolver(); 50var resolver = CreateDefaultKeyResolver(); 66var resolver = CreateDefaultKeyResolver(); 81var resolver = CreateDefaultKeyResolver(); 96var resolver = CreateDefaultKeyResolver(); 113var resolver = CreateDefaultKeyResolver(); 131var resolver = CreateDefaultKeyResolver(); 145var resolver = CreateDefaultKeyResolver(); 160var resolver = CreateDefaultKeyResolver(); 175var resolver = CreateDefaultKeyResolver(); 192var resolver = CreateDefaultKeyResolver(); 214var resolver = CreateDefaultKeyResolver(); 228var resolver = CreateDefaultKeyResolver(); 254var resolver = CreateDefaultKeyResolver(); 281var resolver = CreateDefaultKeyResolver(); 448private static IDefaultKeyResolver CreateDefaultKeyResolver() 486public static DefaultKeyResolution ResolveDefaultKeyPolicy(this IDefaultKeyResolver resolver, string now, params IKey[] allKeys)
KeyManagement\KeyRingProviderTests.cs (2)
794var mockDefaultKeyResolver = new Mock<IDefaultKeyResolver>(MockBehavior.Strict); 895private static ICacheableKeyRingProvider CreateKeyRingProvider(IKeyManager keyManager, IDefaultKeyResolver defaultKeyResolver, KeyManagementOptions keyManagementOptions = null)