10.11.2006, 01:36 | #1 |
Участник
|
casperkamal: Code Access security
Источник: http://casperkamal.spaces.live.com/B...CD63!158.entry
============== The new Dynamics Ax 4.0 release proivdes more tighter security access over API's System tables, and System level classes. I am really delighted with the leap jump in the security portion which is imperative in todays scenario...... I have listed out the new security classes that have been added to Ax SqlStatementExecutePermission SqlDataDictionaryPermission SkipAOSValidationPermission RunAsPermission InteropPermission ExecutePermission CodeAccessPermission FileIOPermission For Example if you are using Sysdictclass.callobject method with the new security structure it would be something like this ExecutePermisssion::Assert(); SysDictClass.callobject(.........); and also remember to call the revertassert option, when ever you are access to the secured system class is complete The Class codeAccessSecurity is an abstract type and you will have to extend it too. SysDatabaseLogPermission class is a good example which would explain you about exending and using the codeAccessSecurity permisssion class (you can expect a post on this soon). The Best Practice compiler is so designed to give you a Best practice warning. whenever you feel that you don't need to use the security classes , just write //BP Deviation Documented above the line to avoid BP warning //BP Deviation Documented SysDictClass.callobject(.........); hope right now you would be in sync to explore more about it....????, just have a look in to this doc which will help you better explore Writing secure X++ code .............. feeling secure Источник: http://casperkamal.spaces.live.com/B...CD63!158.entry |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|