2 instantiations of Key
Microsoft.AspNetCore.DataProtection (2)
KeyManagement\Key.cs (1)
209
return new
Key
(
KeyManagement\XmlKeyManager.cs (1)
309
var key = new
Key
(
13 references to Key
Microsoft.AspNetCore.DataProtection (13)
KeyManagement\DefaultKeyResolver.cs (1)
141
(key as
Key
)?.ResetDescriptor();
KeyManagement\Key.cs (1)
206
internal
Key
Clone()
KeyManagement\XmlKeyManager.cs (11)
61
private readonly ConcurrentDictionary<Guid,
Key
> _knownKeyMap = new(); // Grows unboundedly, like the key ring
184
Dictionary<Guid,
Key
> keyIdToKeyMap = [];
197
var
key = ProcessKeyElement(element);
246
if (keyIdToKeyMap.TryGetValue(revokedKeyId, out
var
key))
261
foreach (
var
key in keyIdToKeyMap.Values)
288
private
Key
? ProcessKeyElement(XElement keyElement)
299
if (_knownKeyMap.TryGetValue(keyId, out
var
oldKey))
309
var
key = new Key(
331
private void RecordKey(
Key
key)
336
Debug.Assert(_knownKeyMap.TryGetValue(key.KeyId, out
var
existingKey));
558
var
key = new Key(