/** * Should we prevent users from running scripts? If yes, then add it here. * * @param string * @param parsedURL * @param parsedURL1 * @return */ public ScriptSecurity getScriptSecurity( final String string, final ParsedURL parsedURL, final ParsedURL parsedURL1 ) { return super.getScriptSecurity( string, parsedURL, parsedURL1 ); } }
/** * This method throws a SecurityException if the script * of given type, found at url and referenced from docURL * should not be loaded. * * This is a convenience method to call checkLoadScript * on the ScriptSecurity strategy returned by * getScriptSecurity. * * @param scriptType type of script, as found in the * type attribute of the <script> element. * @param scriptURL url for the script, as defined in * the script's xlink:href attribute. If that * attribute was empty, then this parameter should * be null * @param docURL url for the document into which the * script was found. */ public void checkLoadScript(String scriptType, ParsedURL scriptURL, ParsedURL docURL) throws SecurityException { ScriptSecurity s = getScriptSecurity(scriptType, scriptURL, docURL); if (s != null) { s.checkLoadScript(); } }
/** * This method throws a SecurityException if the script * of given type, found at url and referenced from docURL * should not be loaded. * * This is a convenience method to call checkLoadScript * on the ScriptSecurity strategy returned by * getScriptSecurity. * * @param scriptType type of script, as found in the * type attribute of the <script> element. * @param scriptURL url for the script, as defined in * the script's xlink:href attribute. If that * attribute was empty, then this parameter should * be null * @param docURL url for the document into which the * script was found. */ public void checkLoadScript(String scriptType, ParsedURL scriptURL, ParsedURL docURL) throws SecurityException { ScriptSecurity s = getScriptSecurity(scriptType, scriptURL, docURL); if (s != null) { s.checkLoadScript(); } }
/** * This method throws a SecurityException if the script * of given type, found at url and referenced from docURL * should not be loaded. * * This is a convenience method to call checkLoadScript * on the ScriptSecurity strategy returned by * getScriptSecurity. * * @param scriptType type of script, as found in the * type attribute of the <script> element. * @param scriptURL url for the script, as defined in * the script's xlink:href attribute. If that * attribute was empty, then this parameter should * be null * @param docURL url for the document into which the * script was found. */ public void checkLoadScript(String scriptType, ParsedURL scriptURL, ParsedURL docURL) throws SecurityException { ScriptSecurity s = getScriptSecurity(scriptType, scriptURL, docURL); if (s != null) { s.checkLoadScript(); } }