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