Location: Symbol Reference > Classes > TJwSecurityDescriptor Class > TJwSecurityDescriptor Methods > TJwSecurityDescriptor.SetPrivateObjectSecurity Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityDescriptor.SetPrivateObjectSecurity Method
Pascal
procedure SetPrivateObjectSecurity(const SecurityInformation: TJwSecurityInformationFlagSet; const ModificationDescriptor: TJwSecurityDescriptor; const AutoInheritFlags: TJwInheritFlagSet; const GenericMap: TJwSecurityGenericMappingClass; const Token: TObject = nil); virtual;
Parameters 
Description 
const GenericMap: TJwSecurityGenericMappingClass 
Defines the generic map class which maps generic access rights to specific access rights.  
const Token: TObject = nil 
defines the token instance which is used to check for access. Can be nil to use process or thread token. 

SetPrivateObjectSecurity combines a parent and a creator security descriptor into a new security descriptor. For detailed information see MSDN http://msdn2.microsoft.com/en-us/library/aa379581.aspx 

If parameter Token is not nil and SecurityInformation contains siSaclSecurityInformation you must explicit activate SE_SECURITY_NAME privilege. 

 

Exceptions 
Description 
will be raised if ModificationDescriptor is nil 
will be raisef if the type of parameter Token is not a TJwSecurityToken class 
will be raised if SecurityInformation contains siSaclSecurityInformation, Token is nil and the current token does not hold SE_SECURITY_NAME privilege 
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!