31 instantiations of KeyManagementOptions
KeyManagementSimulator (1)
Program.cs (1)
347var keyManagementOptions = Options.Create(new KeyManagementOptions()
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingProvider.cs (1)
50var options = keyManagementOptions.Value ?? new();
Microsoft.AspNetCore.DataProtection.Tests (29)
Internal\KeyManagementOptionsPostSetupTest.cs (7)
29var options = new KeyManagementOptions(); 46var options = new KeyManagementOptions(); 65var options = new KeyManagementOptions(); 87var options = new KeyManagementOptions() 114var options = new KeyManagementOptions() 133var options = new KeyManagementOptions(); 147var options = new KeyManagementOptions();
Internal\KeyManagementOptionsSetupTest.cs (2)
22var options = new KeyManagementOptions() 53var options = new KeyManagementOptions()
KeyManagement\DefaultKeyResolverTests.cs (3)
336var options = Options.Create(new KeyManagementOptions() 413var options = Options.Create(new KeyManagementOptions() 468return new DefaultKeyResolver(Options.Create(new KeyManagementOptions()), NullLoggerFactory.Instance);
KeyManagement\KeyRingBasedDataProtectorTests.cs (1)
233var options = new KeyManagementOptions();
KeyManagement\KeyRingProviderTests.cs (5)
261keyManagementOptions: new KeyManagementOptions() { AutoGenerateKeys = false }); 345keyManagementOptions: new KeyManagementOptions() { AutoGenerateKeys = false }); 383keyManagementOptions: new KeyManagementOptions() { AutoGenerateKeys = false }); 880var options = new KeyManagementOptions(); 897keyManagementOptions = keyManagementOptions ?? new KeyManagementOptions();
KeyManagement\XmlKeyManagerTests.cs (11)
34var options = Options.Create(new KeyManagementOptions() 58var options = Options.Create(new KeyManagementOptions() 101var options = Options.Create(new KeyManagementOptions() 199var options = Options.Create(new KeyManagementOptions() 305var options = Options.Create(new KeyManagementOptions() 600var options = Options.Create(new KeyManagementOptions() 627var options = Options.Create(new KeyManagementOptions() 677var options = Options.Create(new KeyManagementOptions() 732var options = Options.Create(new KeyManagementOptions() 798var keyManagementOptions = Options.Create(new KeyManagementOptions() 899var keyManagementOptions = Options.Create(new KeyManagementOptions()
87 references to KeyManagementOptions
CustomEncryptorSample (2)
CustomBuilderExtensions.cs (2)
18builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(serviceProvider => 21return new ConfigureOptions<KeyManagementOptions>(options =>
Microsoft.AspNetCore.DataProtection (47)
DataProtectionBuilderExtensions.cs (24)
66builder.Services.Configure<KeyManagementOptions>(options => 88builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 91return new ConfigureOptions<KeyManagementOptions>(options => 114builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 117return new ConfigureOptions<KeyManagementOptions>(options => 130/// <param name="setupAction">An <see cref="Action{KeyManagementOptions}"/> to configure the provided <see cref="KeyManagementOptions"/>.</param> 132public static IDataProtectionBuilder AddKeyManagementOptions(this IDataProtectionBuilder builder, Action<KeyManagementOptions> setupAction) 147/// Calling this API corresponds to setting <see cref="KeyManagementOptions.AutoGenerateKeys"/> 154builder.Services.Configure<KeyManagementOptions>(options => 173builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 176return new ConfigureOptions<KeyManagementOptions>(options => 197builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 200return new ConfigureOptions<KeyManagementOptions>(options => 220builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 223return new ConfigureOptions<KeyManagementOptions>(options => 255builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 259return new ConfigureOptions<KeyManagementOptions>(options => 326builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 329return new ConfigureOptions<KeyManagementOptions>(options => 380builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 383return new ConfigureOptions<KeyManagementOptions>(options => 398/// See <see cref="KeyManagementOptions.NewKeyLifetime"/> for more information and 410builder.Services.Configure<KeyManagementOptions>(options => 499builder.Services.Configure<KeyManagementOptions>(options =>
DataProtectionServiceCollectionExtensions.cs (2)
69ServiceDescriptor.Singleton<IConfigureOptions<KeyManagementOptions>, KeyManagementOptionsSetup>()); 71ServiceDescriptor.Singleton<IPostConfigureOptions<KeyManagementOptions>, KeyManagementOptionsPostSetup>());
Internal\KeyManagementOptionsPostSetup.cs (4)
17/// Performs additional <see cref="KeyManagementOptions" /> configuration, after the user's configuration has been applied. 23internal sealed class KeyManagementOptionsPostSetup : IPostConfigureOptions<KeyManagementOptions> 54void IPostConfigureOptions<KeyManagementOptions>.PostConfigure(string? name, KeyManagementOptions options)
Internal\KeyManagementOptionsSetup.cs (2)
14internal sealed class KeyManagementOptionsSetup : IConfigureOptions<KeyManagementOptions> 40public void Configure(KeyManagementOptions options)
KeyManagement\DefaultKeyResolver.cs (4)
56public DefaultKeyResolver(IOptions<KeyManagementOptions> keyManagementOptions) 60public DefaultKeyResolver(IOptions<KeyManagementOptions> keyManagementOptions, ILoggerFactory loggerFactory) 62_keyPropagationWindow = KeyManagementOptions.KeyPropagationWindow; 63_maxServerToServerClockSkew = KeyManagementOptions.MaxServerClockSkew;
KeyManagement\KeyManagementOptions.cs (1)
24/// Initializes a new instance of <see cref="KeyManagementOptions"/>.
KeyManagement\KeyRingProvider.cs (6)
34IOptions<KeyManagementOptions> keyManagementOptions, 46IOptions<KeyManagementOptions> keyManagementOptions, 50var options = keyManagementOptions.Value ?? new(); 116var minExpirationDate = now + KeyManagementOptions.KeyRingRefreshPeriod + KeyManagementOptions.KeyPropagationWindow; 187var nextAutoRefreshTime = now + GetRefreshPeriodWithJitter(KeyManagementOptions.KeyRingRefreshPeriod);
KeyManagement\XmlKeyManager.cs (4)
71public XmlKeyManager(IOptions<KeyManagementOptions> keyManagementOptions, IActivator activator) 83public XmlKeyManager(IOptions<KeyManagementOptions> keyManagementOptions, IActivator activator, ILoggerFactory loggerFactory) 89IOptions<KeyManagementOptions> keyManagementOptions, 127IOptions<KeyManagementOptions> keyManagementOptions,
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (2)
EntityFrameworkCoreDataProtectionExtensions.cs (2)
27builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 30return new ConfigureOptions<KeyManagementOptions>(options =>
Microsoft.AspNetCore.DataProtection.Extensions.Tests (1)
DataProtectionProviderTests.cs (1)
63s.GetRequiredService<IOptions<KeyManagementOptions>>(),
Microsoft.AspNetCore.DataProtection.StackExchangeRedis (1)
RedisDataProtectionBuilderExtensions.cs (1)
61builder.Services.Configure<KeyManagementOptions>(options =>
Microsoft.AspNetCore.DataProtection.Tests (28)
Internal\KeyManagementOptionsPostSetupTest.cs (16)
27IPostConfigureOptions<KeyManagementOptions> setup = new KeyManagementOptionsPostSetup(config, NullLoggerFactory.Instance); 29var options = new KeyManagementOptions(); 44IPostConfigureOptions<KeyManagementOptions> setup = new KeyManagementOptionsPostSetup(config, NullLoggerFactory.Instance); 46var options = new KeyManagementOptions(); 63IPostConfigureOptions<KeyManagementOptions> setup = new KeyManagementOptionsPostSetup(config, NullLoggerFactory.Instance); 65var options = new KeyManagementOptions(); 82IPostConfigureOptions<KeyManagementOptions> setup = new KeyManagementOptionsPostSetup(config, NullLoggerFactory.Instance); 87var options = new KeyManagementOptions() 112IPostConfigureOptions<KeyManagementOptions> setup = new KeyManagementOptionsPostSetup(config, NullLoggerFactory.Instance); 114var options = new KeyManagementOptions() 131IPostConfigureOptions<KeyManagementOptions> setup = new KeyManagementOptionsPostSetup(config, NullLoggerFactory.Instance); 133var options = new KeyManagementOptions(); 145IPostConfigureOptions<KeyManagementOptions> setup = new KeyManagementOptionsPostSetup(); 147var options = new KeyManagementOptions(); 156private static void AssertReadOnly(KeyManagementOptions options, string keyDir) 175private static void AssertNotReadOnly(KeyManagementOptions options, string keyDir)
Internal\KeyManagementOptionsSetupTest.cs (3)
22var options = new KeyManagementOptions() 53var options = new KeyManagementOptions() 77private static void RunTest(Dictionary<string, object> regValues, KeyManagementOptions options)
KeyManagement\DefaultKeyResolverTests.cs (1)
249var creation1 = now - KeyManagementOptions.KeyPropagationWindow;
KeyManagement\KeyRingBasedDataProtectorTests.cs (1)
233var options = new KeyManagementOptions();
KeyManagement\KeyRingProviderTests.cs (3)
756KeyManagementOptions keyManagementOptions = null) 880var options = new KeyManagementOptions(); 893private static ICacheableKeyRingProvider CreateKeyRingProvider(IKeyManager keyManager, IDefaultKeyResolver defaultKeyResolver, KeyManagementOptions keyManagementOptions = null)
ServiceCollectionTests.cs (4)
88var options = services.GetRequiredService<IOptions<KeyManagementOptions>>().Value; 121var options = services.GetRequiredService<IOptions<KeyManagementOptions>>().Value;
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
3512services.Configure<KeyManagementOptions>(options => 3662services.Configure<KeyManagementOptions>(options =>
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Startup.cs (1)
69services.Configure<KeyManagementOptions>(options =>
VersionStartup.cs (1)
32services.Configure<KeyManagementOptions>(options =>
Microsoft.AspNetCore.SignalR.Tests (1)
Startup.cs (1)
76services.Configure<KeyManagementOptions>(options =>
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
103services.Configure<KeyManagementOptions>(options =>