Home > Ax Technical > Code Access security

Code Access security

September 3, 2006 Leave a comment Go to comments

<![CDATA[

 
 
       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
 
 
     
 
 
  …………..  feeling secure
 

]]>

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: