Package org.apache.batik.bridge
Class NoLoadScriptSecurity
- java.lang.Object
-
- org.apache.batik.bridge.NoLoadScriptSecurity
-
- All Implemented Interfaces:
ScriptSecurity
public class NoLoadScriptSecurity extends java.lang.Object implements ScriptSecurity
This implementation for theScriptSecurity
interface does not allow scripts to be loaded.- Version:
- $Id: NoLoadScriptSecurity.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ERROR_NO_SCRIPT_OF_TYPE_ALLOWED
Message when trying to load a script file and the Document does not have a URLprotected java.lang.SecurityException
se
The exception is built in the constructor and thrown if the checkLoadScript method is called.
-
Constructor Summary
Constructors Constructor Description NoLoadScriptSecurity(java.lang.String scriptType)
Creates a new NoLoadScriptSecurity object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkLoadScript()
Controls whether the script should be loaded or not.
-
-
-
Field Detail
-
ERROR_NO_SCRIPT_OF_TYPE_ALLOWED
public static final java.lang.String ERROR_NO_SCRIPT_OF_TYPE_ALLOWED
Message when trying to load a script file and the Document does not have a URL- See Also:
- Constant Field Values
-
se
protected java.lang.SecurityException se
The exception is built in the constructor and thrown if the checkLoadScript method is called.
-
-
Method Detail
-
checkLoadScript
public void checkLoadScript()
Controls whether the script should be loaded or not.- Specified by:
checkLoadScript
in interfaceScriptSecurity
- Throws:
java.lang.SecurityException
- if the script should not be loaded.
-
-