Location: Symbol Reference > Classes > TJwSecurityToken Class > TJwSecurityToken Methods > TJwSecurityToken.GetTokenPrivileges Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityToken.GetTokenPrivileges Method
Pascal
function GetTokenPrivileges: TJwPrivilegeSet;

GetTokenPrivileges creates an instance of TJwPrivilegeSet with all defined privileges of this token. The privilege set is a readonly copy. You should prefer this function if you want to make more changes. 

Every time you call this function, the resulted instance TJwPrivilegeSet will be saved into an internal list, that is cleared if the token instance is freed. Be aware that your pointers to these privileges instances are invalid afterwards. However you can free the result by yourself. In that case the privileges instance will be removed from the internal list.

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!