Package org.eclipse.ease
Interface ISecurityCheck
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ISecurityCheck
Interface used for security callbacks. Callbacks can be registered to append additional checks for certain script engine actions.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classISecurityCheck.ActionType -
Method Summary
Modifier and Type Method Description booleandoIt(ISecurityCheck.ActionType action, Object... data)Verification to be performed before a certain engine action is executed.
-
Method Details
-
doIt
Verification to be performed before a certain engine action is executed.For
WhenISecurityCheck.ActionType.INJECT_CODEfollowing parameters are provided: data[0] ...Scriptinstance data[1] ... boolean indicator if script should be run in the UI threadfalseis returned the action will be silently skipped if possible. OnSecurityExceptions the exception message will be provided as user feedback.- Parameters:
action- type of action to be performeddata- optional data assigned to that action- Returns:
truewhen action can be performed- Throws:
SecurityException- to provide a dedicated error message to the user
-