113 // We don't allow users to override the Apache XML Security |
113 // We don't allow users to override the Apache XML Security |
114 // configuration in the JRE. Users should use the standard security |
114 // configuration in the JRE. Users should use the standard security |
115 // provider mechanism instead if implementing their own |
115 // provider mechanism instead if implementing their own |
116 // transform or canonicalization algorithms. |
116 // transform or canonicalization algorithms. |
117 // InputStream is = Class.forName("com.sun.org.apache.xml.internal.security.Init").getResourceAsStream("resource/config.xml"); |
117 // InputStream is = Class.forName("com.sun.org.apache.xml.internal.security.Init").getResourceAsStream("resource/config.xml"); |
118 InputStream is = (InputStream) AccessController.doPrivileged( |
118 InputStream is = AccessController.doPrivileged( |
119 new PrivilegedAction() { |
119 new PrivilegedAction<InputStream>() { |
120 public Object run() { |
120 public InputStream run() { |
121 // String cfile = System.getProperty |
121 // String cfile = System.getProperty |
122 // ("com.sun.org.apache.xml.internal.security.resource.config"); |
122 // ("com.sun.org.apache.xml.internal.security.resource.config"); |
123 return getClass().getResourceAsStream |
123 return getClass().getResourceAsStream |
124 // (cfile != null ? cfile : "resource/config.xml"); |
124 // (cfile != null ? cfile : "resource/config.xml"); |
125 ("resource/config.xml"); |
125 ("resource/config.xml"); |