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