10 references to AuthenticationException
System.Net.Security (10)
System\Net\Security\NegotiateStream.cs (3)
835_ => new AuthenticationException(SR.net_auth_SSPI, win32Exception) 938ERROR_TRUST_FAILURE => new AuthenticationException(SR.net_auth_context_expectation_remote, e), 939_ => new AuthenticationException(SR.net_auth_alert, e)
System\Net\Security\SslStream.IO.cs (6)
317throw new AuthenticationException(SR.net_auth_SSPI, token.GetException()); 367throw new AuthenticationException(SR.Format(SR.net_auth_tls_alert, _lastFrame.AlertDescription.ToString()), token.GetException()); 370throw new AuthenticationException(SR.net_auth_SSPI, token.GetException()); 597SendAuthResetSignal(new ReadOnlySpan<byte>(alertToken.Payload), ExceptionDispatchInfo.Capture(new AuthenticationException(SR.net_ssl_io_cert_custom_validation, null))); 602SendAuthResetSignal(new ReadOnlySpan<byte>(alertToken.Payload), ExceptionDispatchInfo.Capture(new AuthenticationException(SR.Format(SR.net_ssl_io_cert_chain_validation, chainStatus), null))); 607SendAuthResetSignal(new ReadOnlySpan<byte>(alertToken.Payload), ExceptionDispatchInfo.Capture(new AuthenticationException(SR.Format(SR.net_ssl_io_cert_validation, sslPolicyErrors), null)));
System\Security\Authentication\AuthenticationException.cs (1)
46public InvalidCredentialException(string? message, Exception? innerException) : base(message, innerException) { }