Methods Summary |
---|
public synchronized boolean | cacheEnabled()
return cacheEnabled;
|
public void | checkAccess(java.lang.ThreadGroup t)
super.checkAccess(t);
checkPermission(new java.lang.RuntimePermission("modifyThreadGroup"));
|
public void | checkConnect(java.lang.String host, int port)
if (checkConnectPermission()) {
return;
}
super.checkConnect(host, port);
|
public void | checkConnect(java.lang.String host, int port, java.lang.Object context)
if (checkConnectPermission()) {
return;
}
super.checkConnect(host, port, context);
|
private boolean | checkConnectPermission()
if (cacheEnabled()) {
return connectPerm.checkPermission();
}
return false;
|
public void | checkExit(int status)
// Verify exit permission
super.checkExit(status);
|
public void | checkPackageAccess(java.lang.String pkgname)
// Remove this once 1.2.2 SecurityManager/ClassLoader bug is fixed.
if(!pkgname.startsWith("sun."))
super.checkPackageAccess(pkgname);
|
private boolean | checkProperty(java.lang.String key)
if (cacheEnabled()) {
return cache.checkPermission(new PropertyPermission(key, "read"));
}
return false;
|
public void | checkPropertyAccess(java.lang.String key)
if (checkProperty(key)) {
return;
}
super.checkPropertyAccess(key);
|
public synchronized void | enablePermissionCache(com.sun.enterprise.security.PermissionCache c)
if (c != null) {
cache = c;
connectPerm = new CachedPermissionImpl
(cache, new SocketPermission("*","connect"));
cacheEnabled = true;
}
|