System.Net.NTAuthentication.GetClientSpecifiedSpn C# (CSharp) Method

GetClientSpecifiedSpn() private method

private GetClientSpecifiedSpn ( ) : string
return 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;
        }
    }