System.Net.Security.SslStream: Method Members

The methods of System.Net.Security.SslStream are listed below. For a list of all members, see the SslStream Members list.

See Also: Inherited members from System.Net.Security.AuthenticatedStream

Public Methods

AuthenticateAsClient(string)

Called by clients to authenticate the server and optionally the client in a client-server connection.

AuthenticateAsClient(string, System.Security.Cryptography.X509Certificates.X509CertificateCollection, System.Security.Authentication.SslProtocols, bool)

Called by clients to authenticate the server and optionally the client in a client-server connection. The authentication process uses the specified certificate collection and SSL protocol.

AuthenticateAsClientAsync(string) : System.Threading.Tasks.Task

Called by clients to authenticate the server and optionally the client in a client-server connection as an asynchronous operation.

AuthenticateAsClientAsync(string, System.Security.Cryptography.X509Certificates.X509CertificateCollection, System.Security.Authentication.SslProtocols, bool) : System.Threading.Tasks.Task

Called by clients to authenticate the server and optionally the client in a client-server connection as an asynchronous operation. The authentication process uses the specified certificate collection and SSL protocol.

AuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate)

Called by servers to authenticate the server and optionally the client in a client-server connection using the specified certificate.

AuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate, bool, System.Security.Authentication.SslProtocols, bool)

Called by servers to authenticate the server and optionally the client in a client-server connection using the specified certificates, requirements and security protocol.

AuthenticateAsServerAsync(System.Security.Cryptography.X509Certificates.X509Certificate) : System.Threading.Tasks.Task

Called by servers to authenticate the server and optionally the client in a client-server connection using the specified certificate as an asynchronous operation.

AuthenticateAsServerAsync(System.Security.Cryptography.X509Certificates.X509Certificate, bool, System.Security.Authentication.SslProtocols, bool) : System.Threading.Tasks.Task

Called by servers to authenticate the server and optionally the client in a client-server connection using the specified certificates, requirements and security protocol as an asynchronous operation.

BeginAuthenticateAsClient(string, AsyncCallback, object) : IAsyncResult

Called by clients to begin an asynchronous operation to authenticate the server and optionally the client.

BeginAuthenticateAsClient(string, System.Security.Cryptography.X509Certificates.X509CertificateCollection, System.Security.Authentication.SslProtocols, bool, AsyncCallback, object) : IAsyncResult

Called by clients to begin an asynchronous operation to authenticate the server and optionally the client using the specified certificates and security protocol.

BeginAuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate, AsyncCallback, object) : IAsyncResult

Called by servers to begin an asynchronous operation to authenticate the client and optionally the server in a client-server connection.

BeginAuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate, bool, System.Security.Authentication.SslProtocols, bool, AsyncCallback, object) : IAsyncResult

Called by servers to begin an asynchronous operation to authenticate the server and optionally the client using the specified certificates, requirements and security protocol.

override
BeginRead(byte[], int, int, AsyncCallback, object) : IAsyncResult

Begins an asynchronous read operation that reads data from the stream and stores it in the specified array.

override
BeginWrite(byte[], int, int, AsyncCallback, object) : IAsyncResult

Begins an asynchronous write operation that writes bytes from the specified buffer to the stream.

EndAuthenticateAsClient(IAsyncResult)

Ends a pending asynchronous server authentication operation started with a previous call to erload:System.Net.Security.SslStream.BeginAuthenticateAsServer.

EndAuthenticateAsServer(IAsyncResult)

Ends a pending asynchronous client authentication operation started with a previous call to erload:System.Net.Security.SslStream.BeginAuthenticateAsClient.

override
EndRead(IAsyncResult) : int

Ends an asynchronous read operation started with a previous call to SslStream.BeginRead(Byte[], int, int, AsyncCallback, object).

override
EndWrite(IAsyncResult)

Ends an asynchronous write operation started with a previous call to SslStream.BeginWrite(Byte[], int, int, AsyncCallback, object).

override
Flush()

Causes any buffered data to be written to the underlying device.

override
Read(byte[], int, int) : int

Reads data from this stream and stores it in the specified array.

override
Seek(long, System.IO.SeekOrigin) : long

Throws a NotSupportedException.

override
SetLength(long)

Sets the length of the underlying stream.

Write(byte[])

Writes the specified data to this stream.

override
Write(byte[], int, int)

Write the specified number of bytes to the underlying stream using the specified buffer and offset.

Protected Methods

override
Dispose(bool)

Releases the unmanaged resources used by the System.Net.Security.SslStream and optionally releases the managed resources.