Location: Symbol Reference > Classes > TJwSecurityToken Class > TJwSecurityToken Methods > TJwSecurityToken.CreateDuplicateToken Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityToken.CreateDuplicateToken Method
Pascal
function CreateDuplicateToken(AccessMask: TJwAccessMask; Security: PSECURITY_ATTRIBUTES): TJwSecurityToken;
Parameters 
Description 
AccessMask: TJwAccessMask 
defines the access to the token handle. MAXIMUM_ALLOWED can be used to get the maximum access allowed. 
Security: PSECURITY_ATTRIBUTES 
A pointer to a SECURITY_ATTRIBUTES structure that specifies a security descriptor for the new token and determines whether child processes can inherit the token. If lpTokenAttributes is NULL, the token gets a default security descriptor and the handle cannot be inherited. If the security descriptor contains a system access control list (SACL), the token gets ACCESS_SYSTEM_SECURITY access right, even if it was not requested in dwDesiredAccess. (source: http://msdn2.microsoft.com/en-us/library/aa446617.aspx)
 

CreateDuplicateToken duplicates the instance AND token. 

As the token type and impersonation level the current values of the instance are used. 

 

Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!