This is the topic: https://docs.microsoft.com/en-us/dotnet/api/system.net.security.authenticatedstream?view=netframework-4.7.2