1 type derived from AuthenticationException
System.Net.Security (1)
artifacts\obj\System.Net.Security\Debug\net10.0\System.Net.Security.notsupported.cs (1)
702public partial class InvalidCredentialException : System.Security.Authentication.AuthenticationException
5 instantiations of AuthenticationException
aspire (2)
Backchannel\ExtensionRpcTarget.cs (2)
28throw new AuthenticationException(); 39throw new AuthenticationException();
Kestrel.SampleApp (1)
Startup.cs (1)
136throw new AuthenticationException($"The endpoint is not configured for server name '{clientHelloInfo.ServerName}'.");
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\SniOptionsSelector.cs (2)
140throw new AuthenticationException(CoreStrings.FormatSniNotConfiguredToAllowNoServerName(_endpointName)); 144throw new AuthenticationException(CoreStrings.FormatSniNotConfiguredForServerName(serverName, _endpointName));
19 references to AuthenticationException
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (2)
358catch (AuthenticationException exception) 608catch (AuthenticationException exception)
InMemory.FunctionalTests (1)
KestrelMetricsTests.cs (1)
912Assert.Equal(typeof(AuthenticationException).FullName, (string)m.Tags["error.type"]);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Middleware\HttpsConnectionMiddleware.cs (1)
204catch (AuthenticationException ex)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
SniOptionsSelectorTests.cs (4)
345var authExWithServerName = Assert.Throws<AuthenticationException>(() => sniOptionsSelector.GetOptions(new MockConnectionContext(), "example.org")); 348var authExWithoutServerName = Assert.Throws<AuthenticationException>(() => sniOptionsSelector.GetOptions(new MockConnectionContext(), null));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (6)
QuicConnectionListenerTests.cs (6)
86var ex = await Assert.ThrowsAsync<AuthenticationException>(async () => 184await Assert.ThrowsAsync<AuthenticationException>(() => QuicConnection.ConnectAsync(options).AsTask()); 257var ex = await Assert.ThrowsAsync<AuthenticationException>(() => QuicConnection.ConnectAsync(options).AsTask()).DefaultTimeout(); 404await Assert.ThrowsAsync<AuthenticationException>(() => clientConnectionTask.AsTask()).DefaultTimeout();
netstandard (1)
netstandard.cs (1)
1822[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Authentication.AuthenticationException))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
837[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Authentication.AuthenticationException))]
System.Net.Mail (1)
System\Net\Mail\SmtpClient.cs (1)
559(typeof(TIOAdapter) == typeof(SyncReadWriteAdapter) && (e is SecurityException or AuthenticationException)) ||
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (1)
377catch (AuthenticationException exception)
System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (1)
184catch (AuthenticationException exception)