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;
        }
    }