public final class Sandbox extends Object
| Constructor and Description |
|---|
Sandbox(PermissionCollection permissions) |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
confine(PrivilegedAction<R> action)
Runs the given action, confined by the permissions configured through the
constructor. |
<R> R |
confine(PrivilegedExceptionAction<R> action) |
public Sandbox(PermissionCollection permissions)
permissions - Will be applied on later calls to confine(PrivilegedAction) and confine(PrivilegedExceptionAction)public <R> R confine(PrivilegedAction<R> action)
constructor.public <R> R confine(PrivilegedExceptionAction<R> action) throws Exception
ExceptionCopyright © 2020. All rights reserved.