| java.lang.Object org.apache.batik.bridge.RelaxedScriptSecurity
RelaxedScriptSecurity | public class RelaxedScriptSecurity implements ScriptSecurity(Code) | | This implementation for the ScriptSecurity interface.
allows the script to be loaded and does not impose constraints
on the urls.
Note that this only means there is no check on the script's
origin, not that it will run without security checks.
author: Vincent Hardy version: $Id: RelaxedScriptSecurity.java 475477 2006-11-15 22:44:28Z cam $ |
Constructor Summary | |
public | RelaxedScriptSecurity(String scriptType, ParsedURL scriptURL, ParsedURL docURL) Parameters: scriptType - type of script, as found in the type attribute of the <script> element. Parameters: scriptURL - url for the script, as defined inthe script's xlink:href attribute. |
Method Summary | |
public void | checkLoadScript() Controls whether the script should be loaded or not. |
RelaxedScriptSecurity | public RelaxedScriptSecurity(String scriptType, ParsedURL scriptURL, ParsedURL docURL)(Code) | | Parameters: scriptType - type of script, as found in the type attribute of the <script> element. Parameters: scriptURL - url for the script, as defined inthe script's xlink:href attribute. If thatattribute was empty, then this parameter shouldbe null Parameters: docURL - url for the document into which the script was found. |
checkLoadScript | public void checkLoadScript()(Code) | | Controls whether the script should be loaded or not.
throws: SecurityException - if the script should not be loaded. |
|
|