28 references to Token
System (2)
net\System\Net\WebSockets\HttpListenerWebSocketContext.cs (1)
150
retVal = new WindowsPrincipal(HttpListener.CreateWindowsIdentity(windowsIdentity.
Token
,
sys\System\EnvironmentHelpers.cs (1)
41
if (!UnsafeNativeMethods.GetTokenInformation(wi.
Token
, UnsafeNativeMethods.TokenIsAppContainer, new IntPtr(dwIsAppContainerPtr), sizeof(int), out dwLength)) {
System.Data (1)
fx\src\data\System\Data\ProviderBase\DbConnectionPoolIdentity.cs (1)
87
return identity.
Token
;
System.IdentityModel (11)
System\IdentityModel\Claims\WindowsClaimSet.cs (4)
151
if (this.windowsIdentity.
Token
== IntPtr.Zero)
276
if (windowsIdentity.
Token
!= IntPtr.Zero)
282
safeAllocHandle = GetTokenInformation(windowsIdentity.
Token
, TokenInformationClass.TokenGroups, out dwLength);
357
safeAllocHandle = GetTokenInformation(windowsIdentity.
Token
, TokenInformationClass.TokenUser, out dwLength);
System\IdentityModel\SecurityUtils.cs (1)
682
return wid.
Token
;
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (1)
112
windowsIdentity = new WindowsIdentity(initialWindowsIdentity.
Token
, SecurityUtils.AuthTypeCertMap);
System\IdentityModel\Tokens\KerberosSecurityTokenHandler.cs (1)
95
WindowsIdentity wi = new WindowsIdentity(kerbToken.WindowsIdentity.
Token
, kerbToken.WindowsIdentity.AuthenticationType);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (1)
423
return new WindowsIdentity(wi.
Token
, AuthenticationTypes.Federation, WindowsAccountType.Normal, true);
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (1)
1070
return new WindowsIdentity(wi.
Token
, AuthenticationTypes.Federation, WindowsAccountType.Normal, true);
System\IdentityModel\Tokens\SessionSecurityToken.cs (1)
941
identity = new WindowsIdentity(winId.
Token
, authenticationType);
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (1)
556
windowsIdentity = new WindowsIdentity(x509WindowsSecurityToken.WindowsIdentity.
Token
, x509WindowsSecurityToken.AuthenticationType);
System.ServiceModel (9)
System\ServiceModel\ComIntegration\ComPlusAuthorization.cs (5)
303
SafeCloseHandle clientIdentityToken = new SafeCloseHandle(clientIdentity.
Token
, false);
377
if (IntPtr.Zero == clientIdentity.
Token
)
390
LUID luidModified = SecurityUtils.GetModifiedIDLUID(new SafeCloseHandle(clientIdentity.
Token
, false));
433
if (IntPtr.Zero == clientIdentity.
Token
)
542
impersonateContext = WindowsIdentity.Impersonate(clientIdentity.
Token
);
System\ServiceModel\ComIntegration\ComPlusInstanceProvider.cs (1)
62
if (SecurityUtils.IsAtleastImpersonationToken(new SafeCloseHandle(callerIdentity.
Token
, false)))
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (2)
235
WindowsIdentity claimsIdentity = new WindowsIdentity( windowsSecurityToken.WindowsIdentity.
Token
,
524
claimsIdentity = MergeClaims(claimsIdentity, new WindowsIdentity(windowsClaimSet.WindowsIdentity.
Token
,
System\ServiceModel\Security\SecurityUtils.cs (1)
486
return wid.
Token
;
System.Web (5)
Hosting\IIS7WorkerRequest.cs (1)
1929
token = wi.
Token
;
Management\WebEvents.cs (1)
1961
_iprincipal = new WindowsPrincipal(new WindowsIdentity(winIdentity.
Token
, winIdentity.AuthenticationType));
Security\AuthStoreRoleProvider.cs (2)
653
return ((WindowsIdentity)context.User.Identity).
Token
;
660
return ((WindowsIdentity)user.Identity).
Token
;
Security\WindowsTokenRoleProvider.cs (1)
181
return GetCurrentWindowsIdentityAndCheckName(userName).
Token
;