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