public class NoLoadScriptSecurity extends Object implements ScriptSecurity
ScriptSecurity interface
does not allow scripts to be loaded.| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_NO_SCRIPT_OF_TYPE_ALLOWED
Message when trying to load a script file and the Document
does not have a URL
|
protected SecurityException |
se
The exception is built in the constructor and thrown if
the checkLoadScript method is called.
|
| Constructor and Description |
|---|
NoLoadScriptSecurity(String scriptType)
Creates a new NoLoadScriptSecurity object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkLoadScript()
Controls whether the script should be loaded or not.
|
public static final String ERROR_NO_SCRIPT_OF_TYPE_ALLOWED
protected SecurityException se
public NoLoadScriptSecurity(String scriptType)
scriptType - type of script, as found in the
type attribute of the <script> element.public void checkLoadScript()
checkLoadScript in interface ScriptSecuritySecurityException - if the script should not be loaded.Copyright © 2000–2017 Apache Software Foundation. All rights reserved.