Export (0) Print
Expand All

2.7.3 GetAccessToken

The GetAccessToken abstract interface causes the underlying security infrastructure for the server role to return the Token/Authorization Context, as specified in section 2.5.2, of the current execution context.

If no prior call has been made to StartImpersonation() in the current execution context, the call returns the primary access token (see [MSDN-ACCTOKENS]) of the security principal that is associated with the current execution context.

If a call to StartImpersonation() has been performed without a subsequent call to EndImpersonation(), the call returns the impersonation access token as the Token parameter to the Access Check Algorithm defined in section 2.5.3.2.

Token GetAccessToken();

Return Values: This method returns a Token/Authorization Context, as specified in section 2.5.2, of the current execution context.

 
Show:
© 2014 Microsoft