16 references to AuthenticationException
System.DirectoryServices (1)
System\DirectoryServices\ActiveDirectory\Exception.cs (1)
320
exception = new
AuthenticationException
(errorMessage, e);
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\exceptions.cs (1)
289
exception = new
AuthenticationException
(errorMessage, e);
System.Net.Security (14)
System\Net\Security\NegotiateStream.cs (3)
841
_ => new
AuthenticationException
(SR.net_auth_SSPI, win32Exception)
944
ERROR_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 (6)
347
throw new
AuthenticationException
(SR.net_auth_SSPI, token.GetException());
397
throw new
AuthenticationException
(SR.Format(SR.net_auth_tls_alert, _lastFrame.AlertDescription.ToString()), token.GetException());
408
throw new
AuthenticationException
(SR.net_auth_SSPI, token.GetException());
697
return ExceptionDispatchInfo.SetCurrentStackTrace(new
AuthenticationException
(SR.net_ssl_io_cert_custom_validation, null));
702
return ExceptionDispatchInfo.SetCurrentStackTrace(new
AuthenticationException
(SR.Format(SR.net_ssl_io_cert_chain_validation, chainStatus), null));
707
return ExceptionDispatchInfo.SetCurrentStackTrace(new
AuthenticationException
(SR.Format(SR.net_ssl_io_cert_validation, sslPolicyErrors), null));
System\Net\Security\TlsSession.cs (3)
1027
throw new
AuthenticationException
(SR.net_auth_SSPI, selStatus.Exception);
1064
Exception authExc = new
AuthenticationException
(SR.net_auth_SSPI, token.GetException());
1436
throw new
AuthenticationException
(SR.net_auth_SSPI, token.GetException());
System\Net\Security\TlsSession.OpenSsl.cs (1)
310
_ => throw new
AuthenticationException
(SR.net_auth_SSPI, CreateDiagnosticSslException(error, result, sslErrorTemplate)),
System\Security\Authentication\AuthenticationException.cs (1)
46
public InvalidCredentialException(string? message, Exception? innerException) :
base
(message, innerException) { }