@Exported
public class ExprSecurityPolicy
extends java.lang.Object
DefaultExprSecurityPolicy| Constructor and Description | 
|---|
ExprSecurityPolicy()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
checkAnnotation(java.lang.Class clazz)
Check if a given annotation can be applied. 
 | 
boolean | 
checkConstructor(java.lang.Class clazz)
Check if a given class can be constructed. 
 | 
boolean | 
checkMethod(java.lang.Class clazz,
           java.lang.String method)
Check if a given class has permission to execute a given method. 
 | 
boolean | 
checkMethod(java.lang.Object object,
           java.lang.Object method,
           java.lang.Object args)
Check if a given object can execute the given method with the given arguments. 
 | 
boolean | 
checkProperty(java.lang.Object object,
             java.lang.String property,
             java.lang.Boolean readOnly)
Check if a given property can be accessed on the given object. 
 | 
boolean | 
checkScriptMethod(java.lang.Object object,
                 java.lang.String functionName)
Check if a given function can be invoked in the context of the given object. 
 | 
long | 
getLoopCapacity()
Return the number of loop cycles that a script is allowed to
 execute, including calls to script functions and classes. 
 | 
long | 
getTimeout()
Return the amount, in milliseconds, of the timeout for untrusted expressions. 
 | 
void | 
setTimeout(long timeout)  | 
public boolean checkMethod(java.lang.Object object,
                           java.lang.Object method,
                           java.lang.Object args)
object - The object whose method will be called.method - The name of the method to call.args - A argument, or array of arguments, which will be used on the method.public boolean checkProperty(java.lang.Object object,
                             java.lang.String property,
                             java.lang.Boolean readOnly)
object - The object on which the property will act.property - The property to be accessed.readOnly - true if the property is used in a read context, false if called in a write context, or null if the context cannot be reliably determined.public boolean checkMethod(java.lang.Class clazz,
                           java.lang.String method)
clazz - method - public boolean checkAnnotation(java.lang.Class clazz)
clazz - The annoattion to apply.public boolean checkConstructor(java.lang.Class clazz)
clazz - The class to be constructed.public boolean checkScriptMethod(java.lang.Object object,
                                 java.lang.String functionName)
object - The context in which the function is invoked.functionName - The invoked function's namepublic long getTimeout()
public long getLoopCapacity()
@Concealed public void setTimeout(long timeout)