Implemented interface member:
property
KeyId
Microsoft.AspNetCore.DataProtection.KeyManagement.IKey.KeyId
1 write to KeyId
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingTests.cs (1)
108
KeyId
= Guid.NewGuid();
7 references to KeyId
Microsoft.AspNetCore.DataProtection.Tests (7)
KeyManagement\KeyRingTests.cs (7)
46
Assert.Equal(key2.
KeyId
, keyRing.DefaultKeyId);
61
Assert.Equal(key3.
KeyId
, keyRing.DefaultKeyId);
62
Assert.Equal(key3.CreateEncryptor(), keyRing.GetAuthenticatedEncryptorByKeyId(key3.
KeyId
, out var _));
80
Assert.Same(expectedEncryptorInstance1, keyRing.GetAuthenticatedEncryptorByKeyId(key1.
KeyId
, out var isRevoked));
83
Assert.Same(expectedEncryptorInstance1, keyRing.GetAuthenticatedEncryptorByKeyId(key1.
KeyId
, out isRevoked));
87
Assert.Same(expectedEncryptorInstance2, keyRing.GetAuthenticatedEncryptorByKeyId(key2.
KeyId
, out isRevoked));
90
Assert.Same(expectedEncryptorInstance2, keyRing.GetAuthenticatedEncryptorByKeyId(key2.
KeyId
, out isRevoked));