support for C# NetworkCredential