20 writes to ShouldGenerateNewKey
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\DefaultKeyResolver.cs (1)
219
retVal.
ShouldGenerateNewKey
= defaultKey is null;
Microsoft.AspNetCore.DataProtection.Tests (19)
KeyManagement\KeyRingProviderTests.cs (19)
45
ShouldGenerateNewKey
= false
83
ShouldGenerateNewKey
= false
88
ShouldGenerateNewKey
= false
131
ShouldGenerateNewKey
= true
136
ShouldGenerateNewKey
= false
179
ShouldGenerateNewKey
= true
184
ShouldGenerateNewKey
= true
220
ShouldGenerateNewKey
= true
225
ShouldGenerateNewKey
= true
264
ShouldGenerateNewKey
= true
304
ShouldGenerateNewKey
= true
309
ShouldGenerateNewKey
= false
348
ShouldGenerateNewKey
= true
386
ShouldGenerateNewKey
= true
469
ShouldGenerateNewKey
= false // Let the key ring provider decide
482
ShouldGenerateNewKey
= !key2ValidWhenKey1Expires
499
ShouldGenerateNewKey
= false // Let the key ring provider decide
551
ShouldGenerateNewKey
= true, // Force re-generation
556
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)
31
Assert.True(resolution.
ShouldGenerateNewKey
);
47
Assert.False(resolution.
ShouldGenerateNewKey
);
63
Assert.False(resolution.
ShouldGenerateNewKey
);
78
Assert.False(resolution.
ShouldGenerateNewKey
);
93
Assert.False(resolution.
ShouldGenerateNewKey
); // Does not reflect pending expiration
110
Assert.False(resolution.
ShouldGenerateNewKey
); // Does not reflect pending expiration
126
Assert.True(resolution.
ShouldGenerateNewKey
);
142
Assert.True(resolution.
ShouldGenerateNewKey
);
157
Assert.False(resolution.
ShouldGenerateNewKey
);
172
Assert.True(resolution.
ShouldGenerateNewKey
);
189
Assert.False(resolution.
ShouldGenerateNewKey
);
207
Assert.True(resolution.
ShouldGenerateNewKey
);
225
Assert.True(resolution.
ShouldGenerateNewKey
);
242
Assert.True(resolution.
ShouldGenerateNewKey
);
278
Assert.False(resolution.
ShouldGenerateNewKey
);
310
Assert.True(resolution.
ShouldGenerateNewKey
);
389
Assert.True(resolution.
ShouldGenerateNewKey
);