|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.SecurityManager | +--java.rmi.RMISecurityManager
RMISecurityManager
provides a default security manager
for use by RMI applications that need one because they use downloaded
code. RMI's class loader will not download any classes if no security
manager has been set. RMISecurityManager
does not apply
to applets, which run under the protection of their browser's security
manager.
To set the RMISecurityManager
, add the following to an
application's main() method:
System.setSecurityManager(new RMISecurityManager());
The RMISecurityManager
follows the same policy as the
java.lang.SecurityManager
class for security check
methods that it does not override.
Fields inherited from class java.lang.SecurityManager | |
inCheck |
Constructor Summary | |
RMISecurityManager()
Construct a new RMISecurityManager object. |
Method Summary | |
void | checkAccess(Thread t)
Check access to threads. |
void | checkAccess(ThreadGroup g)
Check access to threads. |
void | checkPackageAccess(String pkg)
Check access to classes of a given package. |
void | checkPackageDefinition(String pkg)
Check access to defining classes of a given package. |
Methods inherited from class java.lang.SecurityManager | |
checkAccept , checkAwtEventQueueAccess , checkConnect , checkConnect , checkCreateClassLoader , checkDelete , checkExec , checkExit , checkLink , checkListen , checkMemberAccess , checkMulticast , checkMulticast , checkPermission , checkPermission , checkPrintJobAccess , checkPropertiesAccess , checkPropertyAccess , checkRead , checkRead , checkRead , checkSecurityAccess , checkSetFactory , checkSystemClipboardAccess , checkTopLevelWindow , checkWrite , checkWrite , classDepth , classLoaderDepth , currentClassLoader , currentLoadedClass , getClassContext , getInCheck , getSecurityContext , getThreadGroup , inClass , inClassLoader |
Methods inherited from class java.lang.Object | |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
Constructor Detail |
public RMISecurityManager()
RMISecurityManager
object.Method Detail |
public void checkAccess(Thread t)
public void checkAccess(ThreadGroup g)
public void checkPackageAccess(String pkg)
public void checkPackageDefinition(String pkg)
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |