/* * =========================================================================== * 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:/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"; };