1 type derived from AuthenticationException
System.Net.Security (1)
System\Security\Authentication\AuthenticationException.cs (1)
40public class InvalidCredentialException : AuthenticationException
31 instantiations of AuthenticationException
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\SniOptionsSelector.cs (2)
140throw new AuthenticationException(CoreStrings.FormatSniNotConfiguredToAllowNoServerName(_endpointName)); 144throw new AuthenticationException(CoreStrings.FormatSniNotConfiguredForServerName(serverName, _endpointName));
System.DirectoryServices (1)
System\DirectoryServices\ActiveDirectory\Exception.cs (1)
320exception = new AuthenticationException(errorMessage, e);
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\exceptions.cs (1)
289exception = new AuthenticationException(errorMessage, e);
System.Net.Quic (6)
System\Net\Quic\Internal\ThrowHelper.cs (4)
96return new AuthenticationException(SR.Format(SR.net_quic_auth, GetErrorMessageForStatus(status, message))); 102if (status == QUIC_STATUS_ALPN_NEG_FAILURE) return new AuthenticationException(SR.net_quic_alpn_neg_error); 103if (status == QUIC_STATUS_USER_CANCELED) return new AuthenticationException(SR.Format(SR.net_auth_tls_alert, TlsAlertMessage.UserCanceled)); 123return new AuthenticationException(SR.Format(SR.net_auth_tls_alert, alert));
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (2)
233throw new AuthenticationException(SR.net_quic_cert_custom_validation); 243throw new AuthenticationException(SR.Format(SR.net_quic_cert_chain_validation, sslPolicyErrors));
System.Net.Security (21)
System\Net\Security\NegotiateStream.cs (11)
777new AuthenticationException(SR.net_auth_bad_client_creds_or_target_mismatch), 779new AuthenticationException(SR.net_auth_bad_client_creds_or_target_mismatch), 781new AuthenticationException(SR.Format(SR.net_auth_context_expectation, _expectedImpersonationLevel.ToString(), PrivateImpersonationLevel.ToString())), 783new AuthenticationException(SR.Format(SR.net_auth_context_expectation, _context.ProtectionLevel.ToString(), _expectedProtectionLevel.ToString())), 843_ => new AuthenticationException(SR.net_auth_SSPI, win32Exception) 876throw new AuthenticationException(SR.net_auth_eof); 889throw new AuthenticationException(SR.net_auth_alert); 907throw new AuthenticationException(SR.Format(SR.net_io_header_id, nameof(FrameHeader.MessageId), _framer.ReadHeader.MessageId, FrameHeader.HandshakeId)); 915throw new AuthenticationException(SR.Format(SR.net_io_header_id, nameof(FrameHeader.MessageId), _framer.ReadHeader.MessageId, FrameHeader.HandshakeDoneId)); 946ERROR_TRUST_FAILURE => new AuthenticationException(SR.net_auth_context_expectation_remote, e), 947_ => new AuthenticationException(SR.net_auth_alert, e)
System\Net\Security\SslAuthenticationOptions.cs (1)
159throw new AuthenticationException(SR.net_ssl_io_no_server_cert);
System\Net\Security\SslStream.IO.cs (8)
342throw new AuthenticationException(SR.net_auth_SSPI, token.GetException()); 392throw new AuthenticationException(SR.Format(SR.net_auth_tls_alert, _lastFrame.AlertDescription.ToString()), token.GetException()); 395throw new AuthenticationException(SR.net_auth_SSPI, token.GetException()); 531throw new AuthenticationException(SR.net_ssl_io_frame); 678return ExceptionDispatchInfo.SetCurrentStackTrace(new AuthenticationException(SR.net_ssl_io_cert_custom_validation, null)); 683return ExceptionDispatchInfo.SetCurrentStackTrace(new AuthenticationException(SR.Format(SR.net_ssl_io_cert_chain_validation, chainStatus), null)); 688return ExceptionDispatchInfo.SetCurrentStackTrace(new AuthenticationException(SR.Format(SR.net_ssl_io_cert_validation, sslPolicyErrors), null)); 1124throw new AuthenticationException(SR.net_frame_read_size);
System\Net\Security\SslStream.Protocol.cs (1)
659throw new AuthenticationException(SR.net_ssl_io_no_server_cert);
13 references to AuthenticationException
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (2)
358catch (AuthenticationException exception) 608catch (AuthenticationException exception)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Middleware\HttpsConnectionMiddleware.cs (1)
210catch (AuthenticationException ex)
netstandard (1)
netstandard.cs (1)
1822[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Authentication.AuthenticationException))]
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
837[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Authentication.AuthenticationException))]
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\AD\ADUtils.cs (1)
447catch (System.Security.Authentication.AuthenticationException)
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\ConnectHelper.cs (1)
147if (exception is AuthenticationException)
System.Net.Mail (1)
System\Net\Mail\SmtpClient.cs (1)
559(typeof(TIOAdapter) == typeof(SyncReadWriteAdapter) && (e is SecurityException or AuthenticationException)) ||
System.Net.Quic (1)
System\Net\Quic\QuicListener.cs (1)
174/// Also propagates exceptions from failed connection handshake, e.g. <see cref="AuthenticationException"/>, <see cref="QuicException"/>.
System.Net.Requests (1)
System\Net\FtpWebRequest.cs (1)
1107else if (exception is AuthenticationException || exception is SecurityException)
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
138if (exception.InnerException is AuthenticationException)
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (1)
377catch (AuthenticationException exception)
System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (1)
184catch (AuthenticationException exception)