I found some answers to my question at following link:
However, the above seems too general about Java. Could someone explain it with the weblogic system-jazn-data.xml. for example, what settings in the system-jazn-data.xml would requires certain code need to be called using AccessController.doPrivileged(), or, what method need to be wrapped with AccessController.doPrivileged() .
You can refer the below links,which contains useful examples
Refer the section "Watch out those code source grants & Know about AccessController.doPrivileged when invoking protected APIs"
Refer the sections in the below link
Code for CSF Operations
Example 1: JavaSE Application with Wallet Store
Example 2: JavaEE Application with Wallet Store
Example 3: JavaEE Application with LDAP Store