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