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);
}
internal IIdentity GetIdentity() { CheckThrow(true); return(NegotiateStreamPal.GetIdentity(_context)); }