ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaha_5.4.0.1/threadJava2.policy

55 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
/*
* ===========================================================================
* Code disclaimer information
* This document contains programming examples.
*
* IBM grants you a nonexclusive copyright license to use all
* programming code examples from which you can generate similar function
* tailored to your own specific needs.
*
* All sample code is provided by IBM for illustrative purposes only. These
* examples have not been thoroughly tested under all conditions. IBM,
* therefore, cannot guarantee or imply reliability, serviceability, or
* function of these programs.
*
* All programs contained herein are provided to you "AS IS" without any
* warranties of any kind. The implied warranties of non-infringement,
* merchantability and fitness for a particular purpose are expressly disclaimed.
* ===========================================================================
*/
// The grant below should normally limit authorities to a specific
// application by using codeBase, for example,
// grant codeBase "file:<test directory>/classes/-" {....};
grant {
permission javax.security.auth.AuthPermission "createLoginContext";
permission javax.security.auth.AuthPermission "modifyPrincipals";
permission javax.security.auth.AuthPermission "doAsPrivileged";
permission javax.security.auth.AuthPermission "threadSubjectDoAsPrivileged";
permission javax.security.auth.PrivateCredentialPermission
"com.ibm.as400.security.auth.ProfileTokenCredential com.ibm.as400.security.auth.UserProfilePrincipal \"*\" ",
"read";
};
// The codeBase for these permissions would point to the
// location of the IBM Toolbox for Java jar files.
grant {
permission java.lang.RuntimePermission "loadLibrary.*";
permission java.lang.RuntimePermission "writeFileDescriptor";
permission java.lang.RuntimePermission "readFileDescriptor";
permission javax.security.auth.AuthPermission "modifyThreadIdentity";
};