Location: Symbol Reference > Classes > TJwSecureFileObject Class > TJwSecureFileObject Methods > TJwSecureFileObject.SetSecurityDescriptor Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecureFileObject.SetSecurityDescriptor Method
Pascal
procedure SetSecurityDescriptor(const SD: TJwSecurityDescriptor; const SD_entries: TJwSecurityInformationFlagSet); override; overload;
Parameters 
Description 
const SD: TJwSecurityDescriptor 
defines the security descriptor to be set. It must not nil otherwise EJwsclInvalidParameterException is raised.  
const SD_entries: TJwSecurityInformationFlagSet 
The following security descriptor flags are supported siOwnerSecurityInformation, siGroupSecurityInformation, siDaclSecurityInformation, siSaclSecurityInformation
 
EJwsclNILParameterException 
will be raised if parameter SD is nil. 

SetSecurityDescriptor sets the security descriptor of the file. It simply calls all SetXXX methods if defined in SD_entries. If a entry of the SD cannot be set an exception is raised and the rest is dismissed. However all entries that were successfully set before the exception are stored into the file security. 

The following values are ignored in SD_entries: 

  • siprotectedDaclSecurityInformation
  • siUnprotectedDaclSecurityInformation
  • siprotectedSaclSecurityInformation
  • siUnprotectedSaclSecurityInformation
  • siLabelSecurityInformation : Use SetMandatoryLabel instead
 

Instead use TJwSecurityDescriptor.InheritanceDACLProtection or TJwSecurityDescriptor.InheritanceSACLProtection to control inheritance. 

 

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!