System::Net::Security::SslStream class

SslStream class

A stream that uses the SSL protocol to authenticate the server and optionally the client.

class SslStream : public System::Net::Security::AuthenticatedStream

Methods

MethodDescription
virtual AuthenticateAsClient(String)Authenticates the client-side of the connection.
virtual AuthenticateAsClient(String, System::SharedPtr<System::Security::Cryptography::X509Certificates::X509CertificateCollection>, System::Security::Authentication::SslProtocols, bool)Authenticates the client-side of the connection.
BeginRead(System::ArrayPtr<uint8_t>, int32_t, int32_t, AsyncCallback, System::SharedPtr<Object>) overrideInitiates an asynchronous read operation.
BeginWrite(System::ArrayPtr<uint8_t>, int32_t, int32_t, AsyncCallback, System::SharedPtr<Object>) overrideInitiates an asynchronous write operation.
Close() overrideCloses the stream.
Dispose(bool) overrideReleases all resources used by the current object and closes the stream.
EndRead(System::SharedPtr<IAsyncResult>) overrideWaits until the specified asynchronous read operation completes.
EndWrite(System::SharedPtr<IAsyncResult>) overrideEnds an asynchronous write operation. Waits until the specified asynchronous write operation completes.
Flush() overrideClears this stream’s buffers and writes all buffered data to the underlying storage.
get_CanRead() const overrideDetermines if the stream is readable.
get_CanSeek() const overrideDetermines if the stream supports seeking.
get_CanTimeout() const overrideGets a value that determines whether the current stream can time out.
get_CanWrite() const overrideDetermines if the stream is writable.
virtual get_CheckCertRevocationStatus()Returns a value that indicates if the certificate revocation list is checked during the certificate validation process.
virtual get_CipherAlgorithm()Returns the encryption algorithm.
virtual get_CipherStrength()Returns the strength of the used encryption algorithm.
virtual get_HashAlgorithm()Returns the hash algorithm.
virtual get_HashStrength()Returns the strength of the used hash algorithm.
get_IsAuthenticated() const overrideReturns a value that indicates if authentication is successfully passed.
get_IsEncrypted() const overrideReturns a value that indicates if the data sent using this stream is encrypted.
get_IsMutuallyAuthenticated() const overrideReturns a value that indicates if a server and a client are authenticated.
get_IsServer() const overrideReturns a value that indicates if the local side of the connection is the server.
get_IsSigned() const overrideReturns a value that indicates if the data sent using this stream is signed.
virtual get_KeyExchangeStrength()Returns the strength of the used key exchange algorithm.
get_Length() const overrideReturns the length of the stream in bytes.
virtual get_LocalCertificate()Returns the certificate that is used to authenticate the local endpoint.
get_Position() const overrideReturns the current position of the stream.
get_ReadTimeout() const overrideGets a value, in milliseconds, that determines how long the stream will attempt to read before timing out.
virtual get_RemoteCertificate()Returns the certificate that is used to authenticate the remote endpoint.
virtual get_SslProtocol()Returns the SSL protocol.
get_WriteTimeout() const overrideGets a value, in milliseconds, that determines how long the stream will attempt to write before timing out.
Read(const ArrayPtr<uint8_t>&, int32_t, int32_t) overrideReads the specified number of bytes from the stream and writes them to the specified byte array.
Read(const System::Details::ArrayView<uint8_t>&, int32_t, int32_t) overrideReads the specified number of bytes from the stream and writes them to the specified byte array.
Seek(int64_t, IO::SeekOrigin) overrideSets the position of the stream represented by the current object.
set_Position(int64_t) overrideSets the stream’s position.
set_ReadTimeout(int32_t) overrideSets a value that determines whether the current stream can time out.
set_WriteTimeout(int32_t) overrideSets a value, in milliseconds, that determines how long the stream will attempt to read before timing out.
SetLength(int64_t) overrideSets the length of the stream represented by the current object.
SslStream(System::SharedPtr<IO::Stream>)Constructs a new instance.
SslStream(System::SharedPtr<IO::Stream>, bool)Constructs a new instance.
SslStream(System::SharedPtr<IO::Stream>, bool, RemoteCertificateValidationCallback)Constructs a new instance.
SslStream(System::SharedPtr<IO::Stream>, bool, RemoteCertificateValidationCallback, LocalCertificateSelectionCallback)Constructs a new instance.
SslStream(System::SharedPtr<IO::Stream>, bool, RemoteCertificateValidationCallback, LocalCertificateSelectionCallback, EncryptionPolicy)Constructs a new instance.
Write(const ArrayPtr<uint8_t>&)Writes the specified byte array to the stream.
Write(const ArrayPtr<uint8_t>&, int32_t, int32_t) overrideWrites the specified subrange of bytes from the specified byte array to the stream.
Write(const System::Details::ArrayView<uint8_t>&)Writes the specified byte array to the stream.
Write(const System::Details::ArrayView<uint8_t>&, int32_t, int32_t) overrideWrites the specified subrange of bytes from the specified byte array to the stream.

Fields

FieldDescription
static NullA stream with no underlying storage.

Typedefs

TypedefDescription
AsyncResultTypeRTTI information.
StreamImplementationPtrType of pointer to the implementation.

See Also