Package org.opensearch.script
Class ClassPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
org.opensearch.script.ClassPermission
- All Implemented Interfaces:
Serializable
,Guard
Checked by scripting engines to allow loading a java class.
Examples:
Allow permission to java.util.List
permission org.opensearch.script.ClassPermission "java.util.List";Allow permission to classes underneath
java.util
(and its subpackages such as java.util.zip
)
permission org.opensearch.script.ClassPermission "java.util.*";Allow permission to standard predefined list of basic classes (see list below)
permission org.opensearch.script.ClassPermission "<<STANDARD>>";Allow permission to all classes
permission org.opensearch.script.ClassPermission "*";
Set of classes (allowed by special value <<STANDARD>>
):
- See Also:
- Opensearch.internal:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Typical set of classes for scripting: basic data types, math, dates, and simple collections -
Constructor Summary
ConstructorDescriptionClassPermission
(String name) Creates a new ClassPermission object.ClassPermission
(String name, String actions) Creates a new ClassPermission object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Methods inherited from class java.security.BasicPermission
equals, getActions, hashCode
Methods inherited from class java.security.Permission
checkGuard, getName, toString
-
Field Details
-
STANDARD
- See Also:
-
STANDARD_CLASSES
Typical set of classes for scripting: basic data types, math, dates, and simple collections
-
-
Constructor Details
-
ClassPermission
Creates a new ClassPermission object.- Parameters:
name
- class to grant permission to
-
ClassPermission
Creates a new ClassPermission object. This constructor exists for use by thePolicy
object to instantiate new Permission objects.- Parameters:
name
- class to grant permission toactions
- ignored
-
-
Method Details
-
implies
- Overrides:
implies
in classBasicPermission
-
newPermissionCollection
- Overrides:
newPermissionCollection
in classBasicPermission
-