Location: Symbol Reference > Classes > TJwSecurityToken Class > TJwSecurityToken Methods > PrivilegeCheck Method > TJwSecurityToken.PrivilegeCheck Method (TJwPrivilegeSet, TJwPrivCheck)
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityToken.PrivilegeCheck Method (TJwPrivilegeSet, TJwPrivCheck)
Pascal
function PrivilegeCheck(const RequiredPrivileges: TJwPrivilegeSet; const RequiresAllPrivs: TJwPrivCheck): boolean; overload;
Parameters 
Description 
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. 

Every privilege that was used for a privilege check will have the property Privilege_Used_For_Access set to true. 

 

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!