Class AccessControllerSandbox
- java.lang.Object
-
- org.apache.ignite.internal.processors.security.sandbox.AccessControllerSandbox
-
- All Implemented Interfaces:
IgniteSandbox
public class AccessControllerSandbox extends Object implements IgniteSandbox
Sandbox that based on AccessController.
-
-
Constructor Summary
Constructors Constructor Description AccessControllerSandbox(GridKernalContext ctx, IgniteSecurity security)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanenabled()<T> Texecute(Callable<T> c)Executescallablewith constraints defined by currentSecuritySubject.
-
-
-
Constructor Detail
-
AccessControllerSandbox
public AccessControllerSandbox(GridKernalContext ctx, IgniteSecurity security)
Constructor.
-
-
Method Detail
-
execute
public <T> T execute(Callable<T> c) throws IgniteException
Executescallablewith constraints defined by currentSecuritySubject.- Specified by:
executein interfaceIgniteSandbox- Parameters:
c- Callable to execute.- Returns:
- Result of
callable. - Throws:
IgniteException- See Also:
IgniteSecurity.withContext(UUID),IgniteSecurity.withContext(SecurityContext),SecuritySubject.sandboxPermissions()
-
enabled
public boolean enabled()
- Specified by:
enabledin interfaceIgniteSandbox- Returns:
- True if the sandbox is enabled.
-
-