Location: Symbol Reference > Classes > TJwSecurityToken Class > TJwSecurityToken Methods > PrivilegeCheck Method > TJwSecurityToken.PrivilegeCheck Method (TJwSecurityToken, TJwPrivilegeSet, TJwPrivCheck)
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityToken.PrivilegeCheck Method (TJwSecurityToken, TJwPrivilegeSet, TJwPrivCheck)
Pascal
class function PrivilegeCheck(const ClientToken: TJwSecurityToken; const RequiredPrivileges: TJwPrivilegeSet; const RequiresAllPrivs: TJwPrivCheck): boolean; overload;
Parameters 
Description 
const ClientToken: TJwSecurityToken 
is a token that is used to check the privileges  
aRequiredPrivileges 
provides a list of priveleges that are compared with the token  

see description

PrivilegeCheck is a simulation of WinAPI PrivilegeCheck (http://msdn2.microsoft.com/en-us/library/aa379304.aspx) PrivilegeCheck checks for enabled privleges of the token. If RequiresAllPrivs is pcDefault PrivilegeCheck returns true if one privilege provided in aRequiredPrivileges is enabled in the token If no privilege from aRequiredPrivileges is enabled in the token the function returns false. If RequiresAllPrivs is pcAllPrivsEnabled PrivilegeCheck returns true if all privileges from aRequiredPrivileges are enabled in the token; otherwise false. 

 

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!