Extending security classes to work with own objects  
Author Message
Nick Martyshchenko





PostPosted: .NET Base Class Library, Extending security classes to work with own objects Top

Hello!

.NET framework 2.0 introduced System.Security.AccessControl namespace to do different task related to security.

Is there any way to extend its (or maybe other) functionality to work with user created objects

I explain result I want to achieve.

For example, we have FileSecurity class to maintain file permissions. Also we have registry database which internally also file but from logical view it gives a set of security rights applied to objects it contains. So I want to make my own storage with my own hierarchy of objects and my own rights but use to manipulate, create, modify and related task .NET FCL. Is it possible Or I have to create my own mechanics to achieve this

Thank in advance!

Best regards,

    Nick Martyshchenko.

 

P.S. So no ideas



.NET Development33  
 
 
Stephen Fisher - MS





PostPosted: .NET Base Class Library, Extending security classes to work with own objects Top

Hello Nick,

Yes, you can extended the AccessControl classes for your custom access types.

The following page may be helpful to you from another community member:
http://pluralsight.com/wiki/default.aspx/Keith.GuideBook/HowToProgramACLs.html

You can also find more information on the extensible APIs at:

http://msdn2.microsoft.com/en-us/library/system.security.accesscontrol.aspx

Hope that helps,
Stephen
Microsoft Common Language Runtime: Security - Developer
http://blogs.msdn.com/stfisher



 
 
Nick Martyshchenko





PostPosted: .NET Base Class Library, Extending security classes to work with own objects Top

Thank you for your info. I dont check answers for a while so my thanks delayed
 
 
nilsandrey





PostPosted: .NET Base Class Library, Extending security classes to work with own objects Top

Hi Stephen, that's exactly what I need to do now, one month later...but the zipped example of the book that really illustrate what we want is in unmanaged code. I didn't found on Internet such as an example with the new System.Security.AccessControl classes.

Could you help me

Thanks in advance,
Nils.