public final class RhinoSandboxClassShutter extends Object implements org.mozilla.javascript.ClassShutter
SecurityManager.checkPackageAccess(String).| Constructor and Description |
|---|
RhinoSandboxClassShutter(SecurityManager securityManager,
List<Pattern> whiteList,
List<Pattern> blackList)
Constructs the sandboxed class-shutter with the given configuration options.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
visibleToScripts(String fullClassName)
This implementation first checks whether the class/package is allowed by the configured security manager
(if one is set).
|
public RhinoSandboxClassShutter(SecurityManager securityManager, List<Pattern> whiteList, List<Pattern> blackList)
securityManager - the security manager to use for package access checks. May be null to disable.whiteList - the class-name white-list. May not be null.blackList - the class-name black-list. May not be null.public boolean visibleToScripts(String fullClassName)
visibleToScripts in interface org.mozilla.javascript.ClassShutterCopyright © 2010–2024 Open Identity Platform Community. All rights reserved.