SecureStreamClientBaseTryAuthenticate(Stream, Boolean, Stream) Method

Attempts to authenticate the supplied network stream, optionally using SSL/TLS encryption.

Definition

Namespace: SnapDB.Security
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public bool TryAuthenticate(
	Stream stream,
	bool useSsl,
	out Stream?? secureStream
)

Parameters

stream  Stream
The stream to authenticate.
useSsl  Boolean
true if SSL is to be used; otherwise, false.
secureStream  Stream
When successful, contains the authenticated and optionally encrypted stream.

Return Value

Boolean
true if authentication is successful and if SSL/TLS encryption is used and successful; otherwise, false.

See Also