SecureStreamClientBaseAuthenticate Method

Authenticates the supplied stream. Returns the secure stream.

Definition

Namespace: SnapDB.Security
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public Stream Authenticate(
	Stream stream,
	bool useSsl = true
)

Parameters

stream  Stream
The stream to authenticate.
useSsl  Boolean  (Optional)
Indicates whether to use SSL for secure communication. Defaults to true if not specified.

Return Value

Stream
A secure stream if authentication succeeds; otherwise, an exception is thrown.

See Also