1 instantiation of KeyManagementOptions
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingProvider.cs (1)
50
var options = keyManagementOptions.Value ??
new
();
47 references to KeyManagementOptions
Microsoft.AspNetCore.DataProtection (47)
DataProtectionBuilderExtensions.cs (24)
66
builder.Services.Configure<
KeyManagementOptions
>(options =>
88
builder.Services.AddSingleton<IConfigureOptions<
KeyManagementOptions
>>(services =>
91
return new ConfigureOptions<
KeyManagementOptions
>(options =>
114
builder.Services.AddSingleton<IConfigureOptions<
KeyManagementOptions
>>(services =>
117
return new ConfigureOptions<
KeyManagementOptions
>(options =>
130
/// <param name="setupAction">An <see cref="Action{KeyManagementOptions}"/> to configure the provided <see cref="
KeyManagementOptions
"/>.</param>
132
public static IDataProtectionBuilder AddKeyManagementOptions(this IDataProtectionBuilder builder, Action<
KeyManagementOptions
> setupAction)
147
/// Calling this API corresponds to setting <see cref="
KeyManagementOptions
.AutoGenerateKeys"/>
154
builder.Services.Configure<
KeyManagementOptions
>(options =>
173
builder.Services.AddSingleton<IConfigureOptions<
KeyManagementOptions
>>(services =>
176
return new ConfigureOptions<
KeyManagementOptions
>(options =>
197
builder.Services.AddSingleton<IConfigureOptions<
KeyManagementOptions
>>(services =>
200
return new ConfigureOptions<
KeyManagementOptions
>(options =>
220
builder.Services.AddSingleton<IConfigureOptions<
KeyManagementOptions
>>(services =>
223
return new ConfigureOptions<
KeyManagementOptions
>(options =>
255
builder.Services.AddSingleton<IConfigureOptions<
KeyManagementOptions
>>(services =>
259
return new ConfigureOptions<
KeyManagementOptions
>(options =>
326
builder.Services.AddSingleton<IConfigureOptions<
KeyManagementOptions
>>(services =>
329
return new ConfigureOptions<
KeyManagementOptions
>(options =>
380
builder.Services.AddSingleton<IConfigureOptions<
KeyManagementOptions
>>(services =>
383
return new ConfigureOptions<
KeyManagementOptions
>(options =>
398
/// See <see cref="
KeyManagementOptions
.NewKeyLifetime"/> for more information and
410
builder.Services.Configure<
KeyManagementOptions
>(options =>
499
builder.Services.Configure<
KeyManagementOptions
>(options =>
DataProtectionServiceCollectionExtensions.cs (2)
69
ServiceDescriptor.Singleton<IConfigureOptions<
KeyManagementOptions
>, KeyManagementOptionsSetup>());
71
ServiceDescriptor.Singleton<IPostConfigureOptions<
KeyManagementOptions
>, KeyManagementOptionsPostSetup>());
Internal\KeyManagementOptionsPostSetup.cs (4)
17
/// Performs additional <see cref="
KeyManagementOptions
" /> configuration, after the user's configuration has been applied.
23
internal sealed class KeyManagementOptionsPostSetup : IPostConfigureOptions<
KeyManagementOptions
>
54
void IPostConfigureOptions<
KeyManagementOptions
>.PostConfigure(string? name,
KeyManagementOptions
options)
Internal\KeyManagementOptionsSetup.cs (2)
14
internal sealed class KeyManagementOptionsSetup : IConfigureOptions<
KeyManagementOptions
>
40
public void Configure(
KeyManagementOptions
options)
KeyManagement\DefaultKeyResolver.cs (4)
56
public DefaultKeyResolver(IOptions<
KeyManagementOptions
> keyManagementOptions)
60
public 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)
34
IOptions<
KeyManagementOptions
> keyManagementOptions,
46
IOptions<
KeyManagementOptions
> keyManagementOptions,
50
var
options = keyManagementOptions.Value ?? new();
116
var minExpirationDate = now +
KeyManagementOptions
.KeyRingRefreshPeriod +
KeyManagementOptions
.KeyPropagationWindow;
187
var nextAutoRefreshTime = now + GetRefreshPeriodWithJitter(
KeyManagementOptions
.KeyRingRefreshPeriod);
KeyManagement\XmlKeyManager.cs (4)
71
public XmlKeyManager(IOptions<
KeyManagementOptions
> keyManagementOptions, IActivator activator)
83
public XmlKeyManager(IOptions<
KeyManagementOptions
> keyManagementOptions, IActivator activator, ILoggerFactory loggerFactory)
89
IOptions<
KeyManagementOptions
> keyManagementOptions,
127
IOptions<
KeyManagementOptions
> keyManagementOptions,