21 references to 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));
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 (12)
System\Net\Security\NegotiateStream.cs (8)
769new AuthenticationException(SR.net_auth_bad_client_creds_or_target_mismatch), 771new AuthenticationException(SR.net_auth_bad_client_creds_or_target_mismatch), 773new AuthenticationException(SR.Format(SR.net_auth_context_expectation, _expectedImpersonationLevel.ToString(), PrivateImpersonationLevel.ToString())), 775new AuthenticationException(SR.Format(SR.net_auth_context_expectation, _context.ProtectionLevel.ToString(), _expectedProtectionLevel.ToString())), 868throw new AuthenticationException(SR.net_auth_eof); 881throw new AuthenticationException(SR.net_auth_alert); 899throw new AuthenticationException(SR.Format(SR.net_io_header_id, nameof(FrameHeader.MessageId), _framer.ReadHeader.MessageId, FrameHeader.HandshakeId)); 907throw new AuthenticationException(SR.Format(SR.net_io_header_id, nameof(FrameHeader.MessageId), _framer.ReadHeader.MessageId, FrameHeader.HandshakeDoneId));
System\Net\Security\SslAuthenticationOptions.cs (1)
135throw new AuthenticationException(SR.net_ssl_io_no_server_cert);
System\Net\Security\SslStream.IO.cs (1)
1027throw new AuthenticationException(SR.net_frame_read_size);
System\Net\Security\SslStream.Protocol.cs (1)
690throw new AuthenticationException(SR.net_ssl_io_no_server_cert);
System\Security\Authentication\AuthenticationException.cs (1)
44public InvalidCredentialException(string? message) : base(message) { }