SecureStreamServerTTryAuthenticateAsServer Method

Attempts to authenticate the stream

Definition

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

Parameters

stream  Stream
the base stream to authenticate
useSsl  Boolean
gets if ssl should be used
secureStream  Stream
the secure stream that is valid if the function returns true.
token  T
the user's token associated with what user created the stream

Return Value

Boolean
true if successful, false otherwise

See Also