2 implementations of GetCurrentKeyRing
Microsoft.AspNetCore.DataProtection (2)
EphemeralDataProtectionProvider.cs (1)
93
public IKeyRing
GetCurrentKeyRing
()
KeyManagement\KeyRingProvider.cs (1)
203
public IKeyRing
GetCurrentKeyRing
()
15 references to GetCurrentKeyRing
Microsoft.AspNetCore.DataProtection (3)
Internal\DataProtectionHostedService.cs (1)
35
var keyRing = _keyRingProvider.
GetCurrentKeyRing
();
KeyManagement\KeyRingBasedDataProtector.cs (2)
96
var currentKeyRing = _keyRingProvider.
GetCurrentKeyRing
();
228
var currentKeyRing = _keyRingProvider.
GetCurrentKeyRing
();
Microsoft.AspNetCore.DataProtection.Tests (12)
HostingTests.cs (3)
24
mockKeyRing.Setup(m => m.
GetCurrentKeyRing
())
51
mockKeyRing.Setup(m => m.
GetCurrentKeyRing
())
77
mockKeyRing.Setup(m => m.
GetCurrentKeyRing
())
KeyManagement\KeyRingBasedDataProtectorTests.cs (9)
57
mockKeyRingProvider.Setup(o => o.
GetCurrentKeyRing
()).Returns(mockKeyRing.Object);
95
mockKeyRingProvider.Setup(o => o.
GetCurrentKeyRing
()).Returns(mockKeyRing.Object);
211
mockKeyRingProvider.Setup(o => o.
GetCurrentKeyRing
()).Returns(keyRing);
398
mockKeyRingProvider.Setup(o => o.
GetCurrentKeyRing
()).Returns(keyRing);
438
mockKeyRingProvider.Setup(o => o.
GetCurrentKeyRing
()).Returns(keyRing);
484
mockKeyRingProvider.Setup(o => o.
GetCurrentKeyRing
()).Returns(keyRing);
534
mockKeyRingProvider.Setup(o => o.
GetCurrentKeyRing
()).Returns(keyRing);
565
mockKeyRingProvider.Setup(o => o.
GetCurrentKeyRing
()).Returns(keyRing);
606
mockKeyRingProvider.Setup(o => o.
GetCurrentKeyRing
()).Returns(mockKeyRing.Object);