2 implementations of IKeyRingProvider
Microsoft.AspNetCore.DataProtection (2)
EphemeralDataProtectionProvider.cs (1)
75private sealed class EphemeralKeyRing<T> : IKeyRing, IKeyRingProvider
KeyManagement\KeyRingProvider.cs (1)
18internal sealed class KeyRingProvider : ICacheableKeyRingProvider, IKeyRingProvider
29 references to IKeyRingProvider
Microsoft.AspNetCore.DataProtection (11)
DataProtectionServiceCollectionExtensions.cs (3)
81services.TryAddSingleton<IKeyRingProvider, KeyRingProvider>(); 86var keyRingProvider = s.GetRequiredService<IKeyRingProvider>();
EphemeralDataProtectionProvider.cs (1)
46IKeyRingProvider keyringProvider;
Internal\DataProtectionHostedService.cs (3)
16private readonly IKeyRingProvider _keyRingProvider; 19public DataProtectionHostedService(IKeyRingProvider keyRingProvider) 23public DataProtectionHostedService(IKeyRingProvider keyRingProvider, ILoggerFactory loggerFactory)
KeyManagement\KeyRingBasedDataProtectionProvider.cs (2)
13private readonly IKeyRingProvider _keyRingProvider; 16public KeyRingBasedDataProtectionProvider(IKeyRingProvider keyRingProvider, ILoggerFactory loggerFactory)
KeyManagement\KeyRingBasedDataProtector.cs (2)
30private readonly IKeyRingProvider _keyRingProvider; 33public KeyRingBasedDataProtector(IKeyRingProvider keyRingProvider, ILogger? logger, string[]? originalPurposes, string newPurpose)
Microsoft.AspNetCore.DataProtection.Tests (18)
HostingTests.cs (3)
23var mockKeyRing = new Mock<IKeyRingProvider>(); 50var mockKeyRing = new Mock<IKeyRingProvider>(); 76var mockKeyRing = new Mock<IKeyRingProvider>();
KeyManagement\KeyRingBasedDataProtectorTests.cs (15)
25keyRingProvider: new Mock<IKeyRingProvider>().Object, 56var mockKeyRingProvider = new Mock<IKeyRingProvider>(); 94var mockKeyRingProvider = new Mock<IKeyRingProvider>(); 115keyRingProvider: new Mock<IKeyRingProvider>(MockBehavior.Strict).Object, 130keyRingProvider: new Mock<IKeyRingProvider>().Object, 144keyRingProvider: new Mock<IKeyRingProvider>().Object, 162keyRingProvider: new Mock<IKeyRingProvider>().Object, 180keyRingProvider: new Mock<IKeyRingProvider>().Object, 210var mockKeyRingProvider = new Mock<IKeyRingProvider>(); 397var mockKeyRingProvider = new Mock<IKeyRingProvider>(); 437var mockKeyRingProvider = new Mock<IKeyRingProvider>(); 483var mockKeyRingProvider = new Mock<IKeyRingProvider>(); 533var mockKeyRingProvider = new Mock<IKeyRingProvider>(); 564var mockKeyRingProvider = new Mock<IKeyRingProvider>(); 605var mockKeyRingProvider = new Mock<IKeyRingProvider>();