1 18 package org.apache.batik.bridge; 19 20 27 public class NoLoadScriptSecurity implements ScriptSecurity { 28 29 33 public static final String ERROR_NO_SCRIPT_OF_TYPE_ALLOWED 34 = "NoLoadScriptSecurity.error.no.script.of.type.allowed"; 35 36 40 protected SecurityException se; 41 42 47 public void checkLoadScript(){ 48 throw se; 49 } 50 51 56 public NoLoadScriptSecurity(String scriptType){ 57 58 se = new SecurityException  59 (Messages.formatMessage(ERROR_NO_SCRIPT_OF_TYPE_ALLOWED, 60 new Object []{scriptType})); 61 } 62 } 63 | Popular Tags |