20 writes to ShouldGenerateNewKey
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\DefaultKeyResolver.cs (1)
217
retVal.
ShouldGenerateNewKey
= defaultKey is null;
Microsoft.AspNetCore.DataProtection.Tests (19)
KeyManagement\KeyRingProviderTests.cs (19)
39
ShouldGenerateNewKey
= false
77
ShouldGenerateNewKey
= false
82
ShouldGenerateNewKey
= false
125
ShouldGenerateNewKey
= true
130
ShouldGenerateNewKey
= false
173
ShouldGenerateNewKey
= true
178
ShouldGenerateNewKey
= true
214
ShouldGenerateNewKey
= true
219
ShouldGenerateNewKey
= true
258
ShouldGenerateNewKey
= true
298
ShouldGenerateNewKey
= true
303
ShouldGenerateNewKey
= false
342
ShouldGenerateNewKey
= true
380
ShouldGenerateNewKey
= true
463
ShouldGenerateNewKey
= false // Let the key ring provider decide
476
ShouldGenerateNewKey
= !key2ValidWhenKey1Expires
493
ShouldGenerateNewKey
= false // Let the key ring provider decide
545
ShouldGenerateNewKey
= true, // Force re-generation
550
ShouldGenerateNewKey
= true, // Force re-generation
19 references to ShouldGenerateNewKey
Microsoft.AspNetCore.DataProtection (2)
KeyManagement\Internal\DefaultKeyResolution.cs (1)
23
/// honor the <see cref="
ShouldGenerateNewKey
"/> property. This property may
KeyManagement\KeyRingProvider.cs (1)
105
if (defaultKeyPolicy.
ShouldGenerateNewKey
|| defaultKey == null)
Microsoft.AspNetCore.DataProtection.Tests (17)
KeyManagement\DefaultKeyResolverTests.cs (17)
27
Assert.True(resolution.
ShouldGenerateNewKey
);
43
Assert.False(resolution.
ShouldGenerateNewKey
);
59
Assert.False(resolution.
ShouldGenerateNewKey
);
74
Assert.False(resolution.
ShouldGenerateNewKey
);
89
Assert.False(resolution.
ShouldGenerateNewKey
); // Does not reflect pending expiration
106
Assert.False(resolution.
ShouldGenerateNewKey
); // Does not reflect pending expiration
122
Assert.True(resolution.
ShouldGenerateNewKey
);
138
Assert.True(resolution.
ShouldGenerateNewKey
);
153
Assert.False(resolution.
ShouldGenerateNewKey
);
168
Assert.True(resolution.
ShouldGenerateNewKey
);
185
Assert.False(resolution.
ShouldGenerateNewKey
);
203
Assert.True(resolution.
ShouldGenerateNewKey
);
221
Assert.True(resolution.
ShouldGenerateNewKey
);
238
Assert.True(resolution.
ShouldGenerateNewKey
);
274
Assert.False(resolution.
ShouldGenerateNewKey
);
306
Assert.True(resolution.
ShouldGenerateNewKey
);
385
Assert.True(resolution.
ShouldGenerateNewKey
);