SecureStreamClientBaseTryAuthenticate(Stream, Boolean, Stream) Method
Attempts to authenticate the supplied network stream, optionally using SSL/TLS encryption.
Namespace: SnapDB.SecurityAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public bool TryAuthenticate(
Stream stream,
bool useSsl,
out Stream?? secureStream
)
Public Function TryAuthenticate (
stream As Stream,
useSsl As Boolean,
<OutAttribute> ByRef secureStream As Stream
) As Boolean
public:
bool TryAuthenticate(
Stream^ stream,
bool useSsl,
[OutAttribute] Stream^% secureStream
)
function TryAuthenticate(stream, useSsl, secureStream);
- 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.
Booleantrue if authentication is successful and if SSL/TLS encryption is used and successful; otherwise,
false.