12 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 (10)
System\Net\Security\NegotiateStream.cs (3)
843
_ => new
AuthenticationException
(SR.net_auth_SSPI, win32Exception)
946
ERROR_TRUST_FAILURE => new
AuthenticationException
(SR.net_auth_context_expectation_remote, e),
947
_ => new
AuthenticationException
(SR.net_auth_alert, e)
System\Net\Security\SslStream.IO.cs (6)
342
throw new
AuthenticationException
(SR.net_auth_SSPI, token.GetException());
392
throw new
AuthenticationException
(SR.Format(SR.net_auth_tls_alert, _lastFrame.AlertDescription.ToString()), token.GetException());
395
throw new
AuthenticationException
(SR.net_auth_SSPI, token.GetException());
678
return ExceptionDispatchInfo.SetCurrentStackTrace(new
AuthenticationException
(SR.net_ssl_io_cert_custom_validation, null));
683
return ExceptionDispatchInfo.SetCurrentStackTrace(new
AuthenticationException
(SR.Format(SR.net_ssl_io_cert_chain_validation, chainStatus), null));
688
return ExceptionDispatchInfo.SetCurrentStackTrace(new
AuthenticationException
(SR.Format(SR.net_ssl_io_cert_validation, sslPolicyErrors), null));
System\Security\Authentication\AuthenticationException.cs (1)
46
public InvalidCredentialException(string? message, Exception? innerException) :
base
(message, innerException) { }