37 references to Format
System.Net.Security (37)
src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssApiException.cs (2)
61SR.Format(SR.net_gssapi_operation_failed_detailed_majoronly, majorError) : 62SR.Format(SR.net_gssapi_operation_failed_majoronly, majorStatus.ToString("x"));
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (11)
163SR.Format(SR.net_ssl_encryptionpolicy_notsupported, sslAuthenticationOptions.EncryptionPolicy)); 173SR.Format(SR.net_ssl_encryptionpolicy_notsupported, sslAuthenticationOptions.EncryptionPolicy)); 227throw new SslException(SR.Format(SR.net_ssl_encryptionpolicy_notsupported, sslAuthenticationOptions.EncryptionPolicy)); 243throw new PlatformNotSupportedException(SR.Format(SR.net_ssl_encryptionpolicy_notsupported, sslAuthenticationOptions.EncryptionPolicy)); 633throw CreateSslException(SR.Format(SR.net_ssl_set_sigalgs_failed, "server")); 639throw CreateSslException(SR.Format(SR.net_ssl_set_sigalgs_failed, "client")); 703handshakeException = new SslException(SR.Format(SR.net_ssl_handshake_failed_error, errorCode), innerError); 771throw new SslException(SR.Format(SR.net_ssl_encrypt_failed, errorCode), GetSslError(retVal, errorCode)); 826throw new SslException(SR.Format(SR.net_ssl_decrypt_failed, errorCode), GetSslError(retVal, errorCode)); 1091string msg = SR.Format(message, Utf8StringMarshaller.ConvertToManaged(Crypto.ErrReasonErrorString(errorVal))); 1118: this(SR.Format(SR.net_generic_operation_failed, error))
System\Net\Security\NegotiateStream.cs (3)
345throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "read")); 511throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "write")); 729throw new InvalidOperationException(SR.Format(SR.net_io_invalidnestedcall, "authenticate"));
System\Net\Security\SslAuthenticationOptions.cs (4)
33throw new InvalidOperationException(SR.Format(SR.net_conflicting_options, nameof(RemoteCertificateValidationCallback))); 43throw new InvalidOperationException(SR.Format(SR.net_conflicting_options, nameof(LocalCertificateSelectionCallback))); 104throw new InvalidOperationException(SR.Format(SR.net_conflicting_options, nameof(ServerCertificateSelectionCallback))); 115throw new InvalidOperationException(SR.Format(SR.net_conflicting_options, nameof(RemoteCertificateValidationCallback)));
System\Net\Security\SslClientAuthenticationOptions.cs (2)
57throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(X509RevocationMode)), nameof(value)); 72throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(EncryptionPolicy)), nameof(value));
System\Net\Security\SslServerAuthenticationOptions.cs (2)
59throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(X509RevocationMode)), nameof(value)); 74throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(EncryptionPolicy)), nameof(value));
System\Net\Security\SslStream.cs (2)
211throw new ArgumentException(SR.Format(SR.net_invalid_enum, "EncryptionPolicy"), nameof(encryptionPolicy)); 748throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "read"));
System\Net\Security\SslStream.IO.cs (9)
198throw new InvalidOperationException(SR.Format(SR.net_io_invalidnestedcall, "authenticate")); 204throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "read")); 211throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "write")); 294throw new InvalidOperationException(SR.Format(SR.net_io_invalidnestedcall, "authenticate")); 392throw new AuthenticationException(SR.Format(SR.net_auth_tls_alert, _lastFrame.AlertDescription.ToString()), token.GetException()); 627SendAuthResetSignal(new ReadOnlySpan<byte>(alertToken.Payload), ExceptionDispatchInfo.Capture(new AuthenticationException(SR.Format(SR.net_ssl_io_cert_chain_validation, chainStatus), null))); 632SendAuthResetSignal(new ReadOnlySpan<byte>(alertToken.Payload), ExceptionDispatchInfo.Capture(new AuthenticationException(SR.Format(SR.net_ssl_io_cert_validation, sslPolicyErrors), null))); 855throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "read")); 1005throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "write"));
System\Net\StreamFramer.cs (2)
44throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed)); 63throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed));