System.Net.Security.SslStream Members

The members of System.Net.Security.SslStream are listed below.

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

Public Constructors

Initializes a new instance of the System.Net.Security.SslStream class using the specified System.IO.Stream.

Initializes a new instance of the System.Net.Security.SslStream class using the specified System.IO.Stream and stream closure behavior.

Initializes a new instance of the System.Net.Security.SslStream class using the specified System.IO.Stream, stream closure behavior and certificate validation delegate.

Initializes a new instance of the System.Net.Security.SslStream class using the specified System.IO.Stream, stream closure behavior, certificate validation delegate and certificate selection delegate.

Public Properties

[read-only]
override
CanReadbool.

Gets a bool value that indicates whether the underlying stream is readable.

[read-only]
override
CanSeekbool.

Gets a bool value that indicates whether the underlying stream is seekable.

[read-only]
override
CanTimeoutbool.

Gets a bool value that indicates whether the underlying stream supports time-outs.

[read-only]
override
CanWritebool.

Gets a bool value that indicates whether the underlying stream is writable.

[read-only]
CheckCertRevocationStatusbool.

Gets a bool value that indicates whether the certificate revocation list is checked during the certificate validation process.

[read-only]
CipherAlgorithmSystem.Security.Authentication.CipherAlgorithmType.

Gets a value that identifies the bulk encryption algorithm used by this System.Net.Security.SslStream.

[read-only]
CipherStrengthint.

Gets a value that identifies the strength of the cipher algorithm used by this System.Net.Security.SslStream.

[read-only]
HashAlgorithmSystem.Security.Authentication.HashAlgorithmType.

Gets the algorithm used for generating message authentication codes (MACs).

[read-only]
HashStrengthint.

Gets a value that identifies the strength of the hash algorithm used by this instance.

[read-only]
override
IsAuthenticatedbool.

Gets a bool value that indicates whether authentication was successful.

[read-only]
override
IsEncryptedbool.

Gets a bool value that indicates whether this System.Net.Security.SslStream uses data encryption.

[read-only]
override
IsMutuallyAuthenticatedbool.

Gets a bool value that indicates whether both server and client have been authenticated.

[read-only]
override
IsServerbool.

Gets a bool value that indicates whether the local side of the connection used by this System.Net.Security.SslStream was authenticated as the server.

[read-only]
override
IsSignedbool.

Gets a bool value that indicates whether the data sent using this stream is signed.

[read-only]
KeyExchangeAlgorithmSystem.Security.Authentication.ExchangeAlgorithmType.

Gets the key exchange algorithm used by this System.Net.Security.SslStream.

[read-only]
KeyExchangeStrengthint.

Gets a value that identifies the strength of the key exchange algorithm used by this instance.

[read-only]
override
Lengthlong.

Gets the length of the underlying stream.

[read-only]
LocalCertificateSystem.Security.Cryptography.X509Certificates.X509Certificate.

Gets the certificate used to authenticate the local endpoint.

override
Positionlong.

Gets or sets the current position in the underlying stream.

override
ReadTimeoutint.

Gets or sets the amount of time a read operation blocks waiting for data.

[read-only]
RemoteCertificateSystem.Security.Cryptography.X509Certificates.X509Certificate.

Gets the certificate used to authenticate the remote endpoint.

[read-only]
SslProtocolSystem.Security.Authentication.SslProtocols.

Gets a value that indicates the security protocol used to authenticate this connection.

override
WriteTimeoutint.

Gets or sets the amount of time a write operation blocks waiting for data.

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.