public class RingoSecurityManager
extends org.mozilla.javascript.RhinoSecurityManager
| Modifier and Type | Field and Description |
|---|---|
static Permission |
ACCESS_DECLARED_MEMBERS |
static Permission |
ACCESS_JAVA |
static Permission |
GET_CLASSLOADER |
static Permission |
SPAWN_THREAD |
inCheck| Constructor and Description |
|---|
RingoSecurityManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAccess(ThreadGroup g)
The default security manager does not provide a way to keep code from starting
threads.
|
void |
checkJavaAccess()
Check if the top-most application script has permission to access
members of Java objects and classes.
|
void |
checkMemberAccess(Class<?> clazz,
int which)
Override to decide on top-most application script class instead of java class.
|
checkAccept, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPermission, checkPermission, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, checkWrite, classDepth, classLoaderDepth, currentClassLoader, currentLoadedClass, getClassContext, getInCheck, getSecurityContext, getThreadGroup, inClass, inClassLoaderpublic static final Permission GET_CLASSLOADER
public static final Permission ACCESS_DECLARED_MEMBERS
public static final Permission ACCESS_JAVA
public static final Permission SPAWN_THREAD
public void checkAccess(ThreadGroup g)
checkAccess in class SecurityManagerg - the threadgrouppublic void checkMemberAccess(Class<?> clazz, int which)
checkMemberAccess in class SecurityManagerclazz - the class that reflection is to be performed on.which - type of access, PUBLIC or DECLARED.SecurityException - if the caller does not have
permission to access members.NullPointerException - if the clazz argument is
null.public void checkJavaAccess()
This checks if the script trying to access a java class or object has the
accessEngine RingoRuntimePermission.
SecurityException - if the caller does not have
permission to access java classes.Copyright © 2016. All rights reserved.