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