System.Net.NTAuthentication.GetClientSpecifiedSpn C# (CSharp) Метод

GetClientSpecifiedSpn() приватный Метод

private GetClientSpecifiedSpn ( ) : string
Результат string
        private string GetClientSpecifiedSpn()
        {
            if (!(IsValidContext && IsCompleted))
            {
                NetEventSource.Fail(this, "Trying to get the client SPN before handshaking is done!");
            }

            string spn = NegotiateStreamPal.QueryContextClientSpecifiedSpn(_securityContext);

            if (NetEventSource.IsEnabled) NetEventSource.Info(this, $"The client specified SPN is [{spn}]");

            return spn;
        }
    }