2 implementations of IsRevoked
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\Key.cs (1)
122public bool IsRevoked { get; private set; }
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingTests.cs (1)
112public bool IsRevoked { get; }
22 references to IsRevoked
KeyManagementSample (2)
Program.cs (2)
41Console.WriteLine($"Key {key.KeyId:B}: Created = {key.CreationDate:u}, IsRevoked = {key.IsRevoked}"); 59Console.WriteLine($"Key {key.KeyId:B}: Created = {key.CreationDate:u}, IsRevoked = {key.IsRevoked}");
Microsoft.AspNetCore.DataProtection (4)
KeyManagement\DefaultKeyResolver.cs (2)
172if (preferredDefaultKey.IsRevoked || preferredDefaultKey.IsExpired(now) || !CanCreateAuthenticatedEncryptor(preferredDefaultKey, ref decryptRetriesRemaining)) 195var unrevokedKeys = allKeys.Where(key => !key.IsRevoked);
KeyManagement\KeyRing.cs (1)
91isRevoked = _key.IsRevoked;
KeyManagement\KeyRingProvider.cs (1)
179if (defaultKey.IsRevoked)
Microsoft.AspNetCore.DataProtection.Tests (16)
KeyManagement\DefaultKeyResolverTests.cs (1)
465mockKey.Setup(o => o.IsRevoked).Returns(isRevoked);
KeyManagement\KeyRingProviderTests.cs (1)
942mockKey.Setup(o => o.IsRevoked).Returns(isRevoked);
KeyManagement\XmlKeyManagerTests.cs (14)
134Assert.False(newKey.IsRevoked); 232Assert.False(newKey.IsRevoked); 376Assert.False(keys[0].IsRevoked); 382Assert.False(keys[1].IsRevoked); 450Assert.True(keys[0].IsRevoked); 452Assert.True(keys[1].IsRevoked); 454Assert.False(keys[2].IsRevoked); 456Assert.True(keys[3].IsRevoked); 965Assert.True(keyDictWithRevocations[key1.KeyId].IsRevoked); 966Assert.True(keyDictWithRevocations[key2.KeyId].IsRevoked); 967Assert.True(keyDictWithRevocations[key3.KeyId].IsRevoked); 968Assert.False(keyDictWithRevocations[key4.KeyId].IsRevoked); 977Assert.True(keyDictWithRevocations[key2.KeyId].IsRevoked); 979Assert.False(keyDictWithRevocations[key4.KeyId].IsRevoked);