alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Axis 2 example source code file (java2sectest.policy)

This example Axis 2 source code file (java2sectest.policy) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Axis 2 tags/keywords

The Axis 2 java2sectest.policy source code

grant {
        permission java.util.PropertyPermission "basedir", "read";
        permission java.util.PropertyPermission "maven.build.dir", "read";
        permission java.lang.RuntimePermission "accessDeclaredMembers";
        permission java.lang.RuntimePermission "exitVM";
        permission java.lang.RuntimePermission "getProtectionDomain";
        permission java.lang.RuntimePermission "modifyThreadGroup";
        permission java.lang.RuntimePermission "setContextClassLoader";
        permission java.lang.RuntimePermission "setIO";        
        permission java.lang.RuntimePermission "setSecurityManager";
                
        permission java.io.FilePermission "${maven_build_dir}/classes/", "read";
        permission java.io.FilePermission "${maven_build_dir}/classes/org/apache/axis2/java/security/AccessController.class", "read";
        permission java.io.FilePermission "${maven_build_dir}/classes/org/apache/xerces/dom/CharacterDataImpl$1.class", "read";     
 
        permission java.io.FilePermission "${maven_build_dir}/test-classes/", "read";
        permission java.io.FilePermission "${maven_build_dir}/test-classes/org/apache/axis2/java/security/AccessController.class", "read";
        permission java.io.FilePermission "${maven_build_dir}/test-classes/org/apache/xerces/dom/CDATASectionImpl.class", "read";  
        permission java.io.FilePermission "${maven_build_dir}/test-classes/org/apache/xerces/dom/CharacterDataImpl$1.class", "read";
        
        
        permission java.io.FilePermission "${maven_build_dir}/test-resources/java2sec/less/LessPermission.jar", "read"; 
        permission java.io.FilePermission "${maven_build_dir}/test-resources/java2sec/more/MorePermission.jar", "read";
        
        permission java.io.FilePermission "${maven_repo_local}/-", "read";
        permission java.io.FilePermission "${maven_installed_root}/lib/-", "read";
        
        permission java.util.PropertyPermission "maven_build_dir", "read";
        permission java.util.PropertyPermission "maven_test_dest", "read";      
        
};


grant codeBase "file:${maven_build_dir}/test-resources/java2sec/more/MorePermission.jar" {
        permission java.io.FilePermission "${base_dir}/test-resources/java2sec/private/private.txt", "read";
        permission java.io.FilePermission "${base_dir}/test-resources/java2sec/public/public.txt", "read";
};

grant codeBase "file:${maven_build_dir}/test-resources/java2sec/less/LessPermission.jar" {
        permission java.io.FilePermission "${base_dir}/test-resources/java2sec/public/public.txt", "read";
};


grant codeBase "file:${maven_installed_root}/lib/-" {
        permission java.io.FilePermission "${base_dir}/test-resources/java2sec/public/public.txt", "read";
        permission java.io.FilePermission "${base_dir}/test-resources/java2sec/private/private.txt", "read";
};

grant codeBase "file:${maven_build_dir}/test-classes/" {
        permission java.io.FilePermission "${base_dir}/test-resources/java2sec/public/public.txt", "read";
};

grant codeBase "file:${maven_build_dir}/classes/" {
        permission java.io.FilePermission "${base_dir}/test-resources/java2sec/public/public.txt", "read";
        permission java.io.FilePermission "${base_dir}/test-resources/java2sec/private/private.txt", "read";
};

grant codeBase "file:${maven_repo_local}/-" {
        permission java.io.FilePermission "${base_dir}/test-resources/java2sec/public/public.txt", "read";
};

Other Axis 2 examples (source code examples)

Here is a short list of links related to this Axis 2 java2sectest.policy source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.