<PackageReference Include="NETStandard.Library" Version="2.0.3" />

System.Net.Security.NegotiateStream

namespace System.Net.Security { public class NegotiateStream : AuthenticatedStream { public virtual TokenImpersonationLevel ImpersonationLevel { get; } public virtual IIdentity RemoteIdentity { get; } public NegotiateStream(Stream innerStream); public NegotiateStream(Stream innerStream, bool leaveInnerStreamOpen); public virtual void AuthenticateAsClient(); public virtual void AuthenticateAsClient(NetworkCredential credential, ChannelBinding binding, string targetName); public virtual void AuthenticateAsClient(NetworkCredential credential, ChannelBinding binding, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel); public virtual void AuthenticateAsClient(NetworkCredential credential, string targetName); public virtual void AuthenticateAsClient(NetworkCredential credential, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel); public virtual Task AuthenticateAsClientAsync(); public virtual Task AuthenticateAsClientAsync(NetworkCredential credential, ChannelBinding binding, string targetName); public virtual Task AuthenticateAsClientAsync(NetworkCredential credential, ChannelBinding binding, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel); public virtual Task AuthenticateAsClientAsync(NetworkCredential credential, string targetName); public virtual Task AuthenticateAsClientAsync(NetworkCredential credential, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel); public virtual void AuthenticateAsServer(); public virtual void AuthenticateAsServer(NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel); public virtual void AuthenticateAsServer(NetworkCredential credential, ExtendedProtectionPolicy policy, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel); public virtual void AuthenticateAsServer(ExtendedProtectionPolicy policy); public virtual Task AuthenticateAsServerAsync(); public virtual Task AuthenticateAsServerAsync(NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel); public virtual Task AuthenticateAsServerAsync(NetworkCredential credential, ExtendedProtectionPolicy policy, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel); public virtual Task AuthenticateAsServerAsync(ExtendedProtectionPolicy policy); public virtual IAsyncResult BeginAuthenticateAsClient(AsyncCallback asyncCallback, object asyncState); public virtual IAsyncResult BeginAuthenticateAsClient(NetworkCredential credential, ChannelBinding binding, string targetName, AsyncCallback asyncCallback, object asyncState); public virtual IAsyncResult BeginAuthenticateAsClient(NetworkCredential credential, ChannelBinding binding, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel, AsyncCallback asyncCallback, object asyncState); public virtual IAsyncResult BeginAuthenticateAsClient(NetworkCredential credential, string targetName, AsyncCallback asyncCallback, object asyncState); public virtual IAsyncResult BeginAuthenticateAsClient(NetworkCredential credential, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel, AsyncCallback asyncCallback, object asyncState); public virtual IAsyncResult BeginAuthenticateAsServer(AsyncCallback asyncCallback, object asyncState); public virtual IAsyncResult BeginAuthenticateAsServer(NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel, AsyncCallback asyncCallback, object asyncState); public virtual IAsyncResult BeginAuthenticateAsServer(NetworkCredential credential, ExtendedProtectionPolicy policy, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel, AsyncCallback asyncCallback, object asyncState); public virtual IAsyncResult BeginAuthenticateAsServer(ExtendedProtectionPolicy policy, AsyncCallback asyncCallback, object asyncState); public virtual void EndAuthenticateAsClient(IAsyncResult asyncResult); public virtual void EndAuthenticateAsServer(IAsyncResult asyncResult); } }