35 instantiations of SslServerAuthenticationOptions
Certificate.Optional.Sample (2)
Program.cs (2)
42return new ValueTask<SslServerAuthenticationOptions>(new SslServerAuthenticationOptions() 50return new ValueTask<SslServerAuthenticationOptions>(new SslServerAuthenticationOptions()
Http3SampleApp (2)
Program.cs (2)
86var options = new SslServerAuthenticationOptions() 103var options = new SslServerAuthenticationOptions()
InMemory.FunctionalTests (12)
HttpsConnectionMiddlewareTests.cs (8)
174return new SslServerAuthenticationOptions 249new ValueTask<SslServerAuthenticationOptions>(new SslServerAuthenticationOptions 341return new SslServerAuthenticationOptions 665return ValueTask.FromResult(new SslServerAuthenticationOptions() 712return ValueTask.FromResult(new SslServerAuthenticationOptions() 922ValueTask.FromResult(new SslServerAuthenticationOptions() 953return ValueTask.FromResult(new SslServerAuthenticationOptions() 985return ValueTask.FromResult(new SslServerAuthenticationOptions()
HttpsTests.cs (4)
88new ValueTask<SslServerAuthenticationOptions>(new SslServerAuthenticationOptions()), state: null); 408return new SslServerAuthenticationOptions 606return ValueTask.FromResult(new SslServerAuthenticationOptions()); 654return ValueTask.FromResult(new SslServerAuthenticationOptions());
Interop.FunctionalTests (2)
Http3\Http3RequestTests.cs (1)
1646return ValueTask.FromResult(new SslServerAuthenticationOptions
Http3\Http3TlsTests.cs (1)
306return ValueTask.FromResult(new SslServerAuthenticationOptions
Kestrel.SampleApp (1)
Startup.cs (1)
139return new ValueTask<SslServerAuthenticationOptions>(new SslServerAuthenticationOptions
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\SniOptionsSelector.cs (2)
49var sslOptions = new SslServerAuthenticationOptions 188new SslServerAuthenticationOptions
Middleware\HttpsConnectionMiddleware.cs (2)
336var sslOptions = new SslServerAuthenticationOptions 542var sslServerAuthenticationOptions = new SslServerAuthenticationOptions
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
SniOptionsSelectorTests.cs (1)
829var options = new SslServerAuthenticationOptions
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (7)
QuicConnectionListenerTests.cs (6)
172var options = new SslServerAuthenticationOptions(); 245var options = new SslServerAuthenticationOptions(); 309var options = new SslServerAuthenticationOptions(); 344var options = new SslServerAuthenticationOptions(); 388return new SslServerAuthenticationOptions(); 437var options = new SslServerAuthenticationOptions();
QuicTestHelpers.cs (1)
84var sslServerAuthenticationOptions = new SslServerAuthenticationOptions();
System.Net.Security (4)
System\Net\Security\SslStream.cs (4)
284SslServerAuthenticationOptions options = new SslServerAuthenticationOptions 354SslServerAuthenticationOptions options = new SslServerAuthenticationOptions 408SslServerAuthenticationOptions options = new SslServerAuthenticationOptions 421SslServerAuthenticationOptions options = new SslServerAuthenticationOptions
72 references to SslServerAuthenticationOptions
Certificate.Optional.Sample (2)
Program.cs (2)
42return new ValueTask<SslServerAuthenticationOptions>(new SslServerAuthenticationOptions() 50return new ValueTask<SslServerAuthenticationOptions>(new SslServerAuthenticationOptions()
Http3SampleApp (4)
Program.cs (4)
86var options = new SslServerAuthenticationOptions() 90return new ValueTask<SslServerAuthenticationOptions>(options); 103var options = new SslServerAuthenticationOptions() 107return new ValueTask<SslServerAuthenticationOptions>(options);
InMemory.FunctionalTests (4)
HttpsConnectionMiddlewareTests.cs (1)
249new ValueTask<SslServerAuthenticationOptions>(new SslServerAuthenticationOptions
HttpsTests.cs (3)
88new ValueTask<SslServerAuthenticationOptions>(new SslServerAuthenticationOptions()), state: null); 463var sslServerAuthenticationOptions = await sslOptions.OnConnection(new TlsConnectionCallbackContext(), CancellationToken.None); 507var sslServerAuthenticationOptions = await tlsOptions.OnConnection(new TlsConnectionCallbackContext(), CancellationToken.None);
Kestrel.SampleApp (1)
Startup.cs (1)
139return new ValueTask<SslServerAuthenticationOptions>(new SslServerAuthenticationOptions
Microsoft.AspNetCore.Connections.Abstractions (1)
TlsConnectionCallbackOptions.cs (1)
21public Func<TlsConnectionCallbackContext, CancellationToken, ValueTask<SslServerAuthenticationOptions>> OnConnection { get; set; } = default!;
Microsoft.AspNetCore.Server.Kestrel.Core (22)
HttpsConfigurationService.cs (1)
150var sslServerAuthenticationOptions = HttpsConnectionMiddleware.CreateHttp3Options(listenOptions.HttpsOptions, logger);
HttpsConnectionAdapterOptions.cs (2)
94/// Provides direct configuration of the <see cref="SslServerAuthenticationOptions"/> on a per-connection basis. 97public Action<ConnectionContext, SslServerAuthenticationOptions>? OnAuthenticate { get; set; }
Internal\Infrastructure\KestrelEventSource.cs (1)
169public void TlsHandshakeStart(BaseConnectionContext connectionContext, SslServerAuthenticationOptions sslOptions)
Internal\SniOptionsSelector.cs (10)
26private readonly Action<ConnectionContext, SslServerAuthenticationOptions>? _onAuthenticateCallback; 49var sslOptions = new SslServerAuthenticationOptions 116public (SslServerAuthenticationOptions, ClientCertificateMode) GetOptions(ConnectionContext connection, string serverName) 150var sslOptions = sniOptions.SslOptions; 179public static ValueTask<SslServerAuthenticationOptions> OptionsCallback(TlsHandshakeCallbackContext callbackContext) 184return new ValueTask<SslServerAuthenticationOptions>(options); 187internal static SslServerAuthenticationOptions CloneSslOptions(SslServerAuthenticationOptions sslOptions) => 207public SniOptions(SslServerAuthenticationOptions sslOptions, HttpProtocols httpProtocols, ClientCertificateMode clientCertificateMode) 214public SslServerAuthenticationOptions SslOptions { get; }
Middleware\HttpsConnectionMiddleware.cs (7)
44private readonly Func<TlsHandshakeCallbackContext, ValueTask<SslServerAuthenticationOptions>>? _tlsCallbackOptions; 336var sslOptions = new SslServerAuthenticationOptions 357internal static void ConfigureAlpn(SslServerAuthenticationOptions serverOptions, HttpProtocols httpProtocols) 439private static async ValueTask<SslServerAuthenticationOptions> ServerOptionsCallback(SslStream sslStream, SslClientHelloInfo clientHelloInfo, object? state, CancellationToken cancellationToken) 453var sslOptions = await middleware._tlsCallbackOptions!(callbackContext); 534internal static SslServerAuthenticationOptions CreateHttp3Options(HttpsConnectionAdapterOptions httpsOptions, ILogger<HttpsConnectionMiddleware> logger) 542var sslServerAuthenticationOptions = new SslServerAuthenticationOptions
TlsHandshakeCallbackOptions.cs (1)
19public Func<TlsHandshakeCallbackContext, ValueTask<SslServerAuthenticationOptions>> OnConnection { get; set; } = default!;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
SniOptionsSelectorTests.cs (4)
425SslServerAuthenticationOptions lastSeenSslOptions = null; 809var propertyNames = typeof(SslServerAuthenticationOptions).GetProperties().Select(property => property.Name).ToList(); 829var options = new SslServerAuthenticationOptions 863var clonedOptions = SniOptionsSelector.CloneSslOptions(options);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (8)
Internal\QuicConnectionListener.cs (2)
76var serverAuthenticationOptions = await _tlsConnectionCallbackOptions.OnConnection(context, cancellationToken); 104private void ValidateServerAuthenticationOptions(SslServerAuthenticationOptions serverAuthenticationOptions)
Internal\QuicLog.cs (6)
200[LoggerMessage(18, LogLevel.Warning, $"{nameof(SslServerAuthenticationOptions)} must provide a server certificate using {nameof(SslServerAuthenticationOptions.ServerCertificate)}," + 201$" {nameof(SslServerAuthenticationOptions.ServerCertificateContext)}, or {nameof(SslServerAuthenticationOptions.ServerCertificateSelectionCallback)}.", EventName = "ConnectionListenerCertificateNotSpecified")] 204[LoggerMessage(19, LogLevel.Warning, $"{nameof(SslServerAuthenticationOptions)} must provide at least one application protocol using {nameof(SslServerAuthenticationOptions.ApplicationProtocols)}.", EventName = "ConnectionListenerApplicationProtocolsNotSpecified")]
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (6)
QuicConnectionListenerTests.cs (5)
172var options = new SslServerAuthenticationOptions(); 245var options = new SslServerAuthenticationOptions(); 309var options = new SslServerAuthenticationOptions(); 344var options = new SslServerAuthenticationOptions(); 437var options = new SslServerAuthenticationOptions();
QuicTestHelpers.cs (1)
84var sslServerAuthenticationOptions = new SslServerAuthenticationOptions();
netstandard (1)
netstandard.cs (1)
1250[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Security.SslServerAuthenticationOptions))]
System.Net.Quic (9)
System\Net\Quic\Internal\MsQuicConfiguration.cs (4)
84SslServerAuthenticationOptions authenticationOptions = options.ServerAuthenticationOptions; 114throw new ArgumentException(SR.Format(SR.net_quic_not_null_ceritifcate, nameof(SslServerAuthenticationOptions.ServerCertificate), nameof(SslServerAuthenticationOptions.ServerCertificateContext), nameof(SslServerAuthenticationOptions.ServerCertificateSelectionCallback)), nameof(options));
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (4)
36/// Always <c>true</c> for outbound/client connections. Configured for inbound/server ones via <see cref="SslServerAuthenticationOptions.ClientCertificateRequired"/>. 40/// Configured via <see cref="SslServerAuthenticationOptions.CertificateRevocationCheckMode"/> or <see cref="SslClientAuthenticationOptions.CertificateRevocationCheckMode"/>. 44/// Configured via <see cref="SslServerAuthenticationOptions.RemoteCertificateValidationCallback"/> or <see cref="SslClientAuthenticationOptions.RemoteCertificateValidationCallback"/>. 49/// Configured via <see cref="SslServerAuthenticationOptions.CertificateChainPolicy"/> or <see cref="SslClientAuthenticationOptions.CertificateChainPolicy"/>.
System\Net\Quic\QuicConnectionOptions.cs (1)
231public SslServerAuthenticationOptions ServerAuthenticationOptions { get; set; } = null!;
System.Net.Security (10)
System\Net\Security\SslAuthenticationOptions.cs (1)
75internal void UpdateOptions(SslServerAuthenticationOptions sslServerAuthenticationOptions)
System\Net\Security\SslStream.cs (8)
40public delegate ValueTask<SslServerAuthenticationOptions> ServerOptionsSelectionCallback(SslStream stream, SslClientHelloInfo clientHelloInfo, object? state, CancellationToken cancellationToken); 284SslServerAuthenticationOptions options = new SslServerAuthenticationOptions 296private IAsyncResult BeginAuthenticateAsServer(SslServerAuthenticationOptions sslServerAuthenticationOptions, CancellationToken cancellationToken, AsyncCallback? asyncCallback, object? asyncState) => 354SslServerAuthenticationOptions options = new SslServerAuthenticationOptions 366public void AuthenticateAsServer(SslServerAuthenticationOptions sslServerAuthenticationOptions) 408SslServerAuthenticationOptions options = new SslServerAuthenticationOptions 421SslServerAuthenticationOptions options = new SslServerAuthenticationOptions 433public Task AuthenticateAsServerAsync(SslServerAuthenticationOptions sslServerAuthenticationOptions, CancellationToken cancellationToken = default)
System\Net\Security\SslStream.IO.cs (1)
461SslServerAuthenticationOptions userOptions =