18 references to AuthenticationException
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.Security (16)
System\Net\Security\NegotiateStream.cs (3)
841_ => new AuthenticationException(SR.net_auth_SSPI, win32Exception) 944ERROR_TRUST_FAILURE => new AuthenticationException(SR.net_auth_context_expectation_remote, e), 945_ => new AuthenticationException(SR.net_auth_alert, e)
System\Net\Security\SslStream.IO.cs (7)
252exception = new AuthenticationException(SR.net_auth_SSPI, exception); 362throw new AuthenticationException(SR.net_auth_SSPI, token.GetException()); 412throw new AuthenticationException(SR.Format(SR.net_auth_tls_alert, _lastFrame.AlertDescription.ToString()), token.GetException()); 423throw new AuthenticationException(SR.net_auth_SSPI, token.GetException()); 717return ExceptionDispatchInfo.SetCurrentStackTrace(new AuthenticationException(SR.net_ssl_io_cert_custom_validation, null)); 722return ExceptionDispatchInfo.SetCurrentStackTrace(new AuthenticationException(SR.Format(SR.net_ssl_io_cert_chain_validation, chainStatus), null)); 727return ExceptionDispatchInfo.SetCurrentStackTrace(new AuthenticationException(SR.Format(SR.net_ssl_io_cert_validation, sslPolicyErrors), null));
System\Net\Security\TlsSession.cs (3)
1061throw new AuthenticationException(SR.net_auth_SSPI, selStatus.Exception); 1098Exception authExc = new AuthenticationException(SR.net_auth_SSPI, token.GetException()); 1498throw new AuthenticationException(SR.net_auth_SSPI, token.GetException());
System\Net\Security\TlsSession.OpenSsl.cs (2)
376throw new AuthenticationException(SR.net_auth_SSPI, status.Exception); 470_ => throw new AuthenticationException(SR.net_auth_SSPI, CreateDiagnosticSslException(error, result, sslErrorTemplate)),
System\Security\Authentication\AuthenticationException.cs (1)
46public InvalidCredentialException(string? message, Exception? innerException) : base(message, innerException) { }