19 writes to DefaultKey
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\DefaultKeyResolver.cs (1)
216
retVal.
DefaultKey
= defaultKey;
Microsoft.AspNetCore.DataProtection.Tests (18)
KeyManagement\KeyRingProviderTests.cs (18)
38
DefaultKey
= key1,
76
DefaultKey
= key1,
81
DefaultKey
= key2,
124
DefaultKey
= null,
129
DefaultKey
= key1,
172
DefaultKey
= null, // Since there are no keys
177
DefaultKey
= null, // Since all keys are revoked
213
DefaultKey
= null,
218
DefaultKey
= null,
257
DefaultKey
= null,
297
DefaultKey
= key1,
302
DefaultKey
= key2,
341
DefaultKey
= key1,
462
DefaultKey
= key1,
474
DefaultKey
= key2ValidWhenKey1Expires ? key2 : null,
492
DefaultKey
= key1,
544
DefaultKey
= key,
549
DefaultKey
= key,
17 references to DefaultKey
Microsoft.AspNetCore.DataProtection (2)
KeyManagement\KeyRingProvider.cs (2)
89
var defaultKey = defaultKeyPolicy.
DefaultKey
;
120
(_defaultKeyResolver.ResolveDefaultKeyPolicy(defaultKeyExpirationDate, allKeys).
DefaultKey
is not { } nextDefaultKey ||
Microsoft.AspNetCore.DataProtection.Tests (15)
KeyManagement\DefaultKeyResolverTests.cs (15)
26
Assert.Null(resolution.
DefaultKey
);
42
Assert.Same(key1, resolution.
DefaultKey
);
58
Assert.Same(key2, resolution.
DefaultKey
);
73
Assert.Same(key1, resolution.
DefaultKey
);
88
Assert.Same(key1, resolution.
DefaultKey
);
105
Assert.Same(key1, resolution.
DefaultKey
);
121
Assert.Null(resolution.
DefaultKey
);
137
Assert.Null(resolution.
DefaultKey
);
152
Assert.Same(key1, resolution.
DefaultKey
);
167
Assert.Null(resolution.
DefaultKey
);
184
Assert.Same(key3, resolution.
DefaultKey
);
273
Assert.Same(key1, resolution.
DefaultKey
);
304
Assert.Null(resolution.
DefaultKey
);
383
Assert.Null(resolution.
DefaultKey
);
444
Assert.Same(key, resolution.
DefaultKey
);