System.Net.Security.NegotiateStreamPal.GetIdentity C# (CSharp) Method

GetIdentity() static private method

static private GetIdentity ( NTAuthentication context ) : IIdentity
context NTAuthentication
return IIdentity
        internal static IIdentity GetIdentity(NTAuthentication context)
        {
            Debug.Assert(!context.IsServer, "GetIdentity: Server is not supported");

            string name = context.Spn;
            string protocol = context.ProtocolName;

            return new GenericIdentity(name, protocol);

        }
        

Usage Example

Beispiel #1
0
 internal IIdentity GetIdentity()
 {
     CheckThrow(true);
     return(NegotiateStreamPal.GetIdentity(_context));
 }