|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.SecurityManager nachos.security.NachosSecurityManager
public class NachosSecurityManager
Protects the environment from malicious Nachos code.
Field Summary |
---|
Fields inherited from class java.lang.SecurityManager |
---|
inCheck |
Constructor Summary | |
---|---|
NachosSecurityManager(File testDirectory)
Allocate a new Nachos security manager. |
Method Summary | |
---|---|
void |
checkPermission(Permission perm)
Check the specified permission. |
void |
enable()
Install this security manager. |
Privilege |
getPrivilege()
Return a privilege object for this security manager. |
ThreadGroup |
getThreadGroup()
Called by the java.lang.Thread constructor to determine a thread group for a child thread of the current thread. |
void |
verifyPrivilege()
Verify that the caller is privileged. |
void |
verifyPrivilege(Permission perm)
Verify that the caller is privileged, so as to check the specified permission. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NachosSecurityManager(File testDirectory)
testDirectory
- the directory usable by the stub file system.Method Detail |
---|
public Privilege getPrivilege()
public void enable()
public void checkPermission(Permission perm)
checkPermission
in class SecurityManager
perm
- the permission to check.public ThreadGroup getThreadGroup()
getThreadGroup
in class SecurityManager
public void verifyPrivilege()
public void verifyPrivilege(Permission perm)
perm
- the permission being checked.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |