21 references to AuthenticationException
Kestrel.SampleApp (1)
Startup.cs (1)
136
throw new
AuthenticationException
($"The endpoint is not configured for server name '{clientHelloInfo.ServerName}'.");
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\SniOptionsSelector.cs (2)
140
throw new
AuthenticationException
(CoreStrings.FormatSniNotConfiguredToAllowNoServerName(_endpointName));
144
throw new
AuthenticationException
(CoreStrings.FormatSniNotConfiguredForServerName(serverName, _endpointName));
System.Net.Quic (6)
System\Net\Quic\Internal\ThrowHelper.cs (4)
96
return new
AuthenticationException
(SR.Format(SR.net_quic_auth, GetErrorMessageForStatus(status, message)));
102
if (status == QUIC_STATUS_ALPN_NEG_FAILURE) return new
AuthenticationException
(SR.net_quic_alpn_neg_error);
103
if (status == QUIC_STATUS_USER_CANCELED) return new
AuthenticationException
(SR.Format(SR.net_auth_tls_alert, TlsAlertMessage.UserCanceled));
123
return new
AuthenticationException
(SR.Format(SR.net_auth_tls_alert, alert));
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (2)
233
throw new
AuthenticationException
(SR.net_quic_cert_custom_validation);
243
throw new
AuthenticationException
(SR.Format(SR.net_quic_cert_chain_validation, sslPolicyErrors));
System.Net.Security (12)
System\Net\Security\NegotiateStream.cs (8)
769
new
AuthenticationException
(SR.net_auth_bad_client_creds_or_target_mismatch),
771
new
AuthenticationException
(SR.net_auth_bad_client_creds_or_target_mismatch),
773
new
AuthenticationException
(SR.Format(SR.net_auth_context_expectation, _expectedImpersonationLevel.ToString(), PrivateImpersonationLevel.ToString())),
775
new
AuthenticationException
(SR.Format(SR.net_auth_context_expectation, _context.ProtectionLevel.ToString(), _expectedProtectionLevel.ToString())),
868
throw new
AuthenticationException
(SR.net_auth_eof);
881
throw new
AuthenticationException
(SR.net_auth_alert);
899
throw new
AuthenticationException
(SR.Format(SR.net_io_header_id, nameof(FrameHeader.MessageId), _framer.ReadHeader.MessageId, FrameHeader.HandshakeId));
907
throw new
AuthenticationException
(SR.Format(SR.net_io_header_id, nameof(FrameHeader.MessageId), _framer.ReadHeader.MessageId, FrameHeader.HandshakeDoneId));
System\Net\Security\SslAuthenticationOptions.cs (1)
135
throw new
AuthenticationException
(SR.net_ssl_io_no_server_cert);
System\Net\Security\SslStream.IO.cs (1)
1027
throw new
AuthenticationException
(SR.net_frame_read_size);
System\Net\Security\SslStream.Protocol.cs (1)
690
throw new
AuthenticationException
(SR.net_ssl_io_no_server_cert);
System\Security\Authentication\AuthenticationException.cs (1)
44
public InvalidCredentialException(string? message) :
base
(message) { }