1 17 package org.apache.jasper.security; 18 19 24 25 public final class SecurityUtil{ 26 27 private static boolean packageDefinitionEnabled = 28 System.getProperty("package.definition") == null ? false : true; 29 30 34 public static boolean isPackageProtectionEnabled(){ 35 if (packageDefinitionEnabled && System.getSecurityManager() != null){ 36 return true; 37 } 38 return false; 39 } 40 41 42 } 43 | Popular Tags |