19 instantiations of DefaultKeyResolution
Microsoft.AspNetCore.DataProtection.Tests (19)
KeyManagement\KeyRingProviderTests.cs (19)
36Tuple.Create((DateTimeOffset)now, (IEnumerable<IKey>)allKeys, new DefaultKeyResolution() 74Tuple.Create((DateTimeOffset)now, (IEnumerable<IKey>)allKeys, new DefaultKeyResolution() 79Tuple.Create(key1.ExpirationDate, (IEnumerable<IKey>)allKeys, new DefaultKeyResolution() 122Tuple.Create((DateTimeOffset)now, (IEnumerable<IKey>)allKeys1, new DefaultKeyResolution() 127Tuple.Create((DateTimeOffset)now, (IEnumerable<IKey>)allKeys2, new DefaultKeyResolution() 170Tuple.Create(now, (IEnumerable<IKey>)allKeys1, new DefaultKeyResolution() 175Tuple.Create(now, (IEnumerable<IKey>)allKeys2, new DefaultKeyResolution() 211Tuple.Create((DateTimeOffset)now, (IEnumerable<IKey>)allKeys, new DefaultKeyResolution() 216Tuple.Create((DateTimeOffset)now, (IEnumerable<IKey>)allKeys, new DefaultKeyResolution() 255Tuple.Create((DateTimeOffset)now, (IEnumerable<IKey>)allKeys, new DefaultKeyResolution() 295Tuple.Create((DateTimeOffset)now, (IEnumerable<IKey>)allKeys1, new DefaultKeyResolution() 300Tuple.Create((DateTimeOffset)now, (IEnumerable<IKey>)allKeys2, new DefaultKeyResolution() 339Tuple.Create((DateTimeOffset)now, (IEnumerable<IKey>)allKeys, new DefaultKeyResolution() 377Tuple.Create((DateTimeOffset)now, (IEnumerable<IKey>)allKeys, new DefaultKeyResolution() 460Tuple.Create(now, (IEnumerable<IKey>)allKeys, new DefaultKeyResolution() 472Tuple.Create(expiration1, (IEnumerable<IKey>)allKeys, new DefaultKeyResolution() 490Tuple.Create(now, (IEnumerable<IKey>)allKeysAfterGeneration, new DefaultKeyResolution() 542Tuple.Create(now, (IEnumerable<IKey>)allKeysBefore, new DefaultKeyResolution() 547Tuple.Create(now, (IEnumerable<IKey>)allKeysAfter, new DefaultKeyResolution()
26 references to DefaultKeyResolution
Microsoft.AspNetCore.DataProtection (5)
KeyManagement\DefaultKeyResolver.cs (3)
212public DefaultKeyResolution ResolveDefaultKeyPolicy(DateTimeOffset now, IEnumerable<IKey> allKeys) 214var retVal = default(DefaultKeyResolution);
KeyManagement\Internal\IDefaultKeyResolver.cs (1)
17DefaultKeyResolution ResolveDefaultKeyPolicy(DateTimeOffset now, IEnumerable<IKey> allKeys);
KeyManagement\KeyRingProvider.cs (1)
88var defaultKeyPolicy = _defaultKeyResolver.ResolveDefaultKeyPolicy(now, allKeys);
Microsoft.AspNetCore.DataProtection.Tests (21)
KeyManagement\DefaultKeyResolverTests.cs (19)
23var resolution = resolver.ResolveDefaultKeyPolicy(DateTimeOffset.Now, new IKey[0]); 39var resolution = resolver.ResolveDefaultKeyPolicy("2016-02-20 23:59:00Z", key1, key2); 55var resolution = resolver.ResolveDefaultKeyPolicy("2016-02-29 23:59:00Z", key1, key2); 70var resolution = resolver.ResolveDefaultKeyPolicy("2016-02-29 23:59:00Z", key1); 85var resolution = resolver.ResolveDefaultKeyPolicy("2016-02-29 23:59:00Z", key1); 102var resolution = resolver.ResolveDefaultKeyPolicy("2016-02-29 23:50:00Z", key1, key2, key3); 118var resolution = resolver.ResolveDefaultKeyPolicy("2015-04-01 00:00:00Z", key1, key2); 134var resolution = resolver.ResolveDefaultKeyPolicy("2015-04-01 00:00:00Z", key1, key2); 149var resolution = resolver.ResolveDefaultKeyPolicy("2015-02-28 23:55:00Z", key1); 164var resolution = resolver.ResolveDefaultKeyPolicy("2015-02-28 23:00:00Z", key1); 181var resolution = resolver.ResolveDefaultKeyPolicy("2015-02-28 23:59:00Z", key1, key2, key3); 199var resolution = resolver.ResolveDefaultKeyPolicy("2000-01-05 00:00:00Z", key1, key2, key3, key4); 217var resolution = resolver.ResolveDefaultKeyPolicy("2000-01-05 00:00:00Z", key1, key2, key3, key4); 234var resolution = resolver.ResolveDefaultKeyPolicy("2000-01-05 00:00:00Z", key1, key2, key3); 270var resolution = resolver.ResolveDefaultKeyPolicy(now, [key1, key2]); 301var resolution = resolver.ResolveDefaultKeyPolicy(now, [key]); 380var resolution = resolver.ResolveDefaultKeyPolicy(now, [key1, key2]); 441var resolution = resolver.ResolveDefaultKeyPolicy(now, [key]); 486public static DefaultKeyResolution ResolveDefaultKeyPolicy(this IDefaultKeyResolver resolver, string now, params IKey[] allKeys)
KeyManagement\KeyRingProviderTests.cs (2)
458var resolveDefaultKeyPolicyReturnValues = new List<Tuple<DateTimeOffset, IEnumerable<IKey>, DefaultKeyResolution>>() 757IEnumerable<Tuple<DateTimeOffset, IEnumerable<IKey>, DefaultKeyResolution>> resolveDefaultKeyPolicyReturnValues,