home *** CD-ROM | disk | FTP | other *** search
- package java.lang;
-
- import java.io.FileDescriptor;
-
- public abstract class SecurityManager {
- protected boolean inCheck;
-
- public boolean getInCheck() {
- return this.inCheck;
- }
-
- protected SecurityManager() {
- if (System.getSecurityManager() != null) {
- throw new SecurityException("can't create SecurityManager");
- }
- }
-
- protected native Class[] getClassContext();
-
- protected native ClassLoader currentClassLoader();
-
- protected native int classDepth(String var1);
-
- protected native int classLoaderDepth();
-
- protected boolean inClass(String name) {
- return this.classDepth(name) >= 0;
- }
-
- protected boolean inClassLoader() {
- return this.currentClassLoader() != null;
- }
-
- public Object getSecurityContext() {
- return null;
- }
-
- public void checkCreateClassLoader() {
- throw new SecurityException();
- }
-
- public void checkAccess(Thread g) {
- throw new SecurityException();
- }
-
- public void checkAccess(ThreadGroup g) {
- throw new SecurityException();
- }
-
- public void checkExit(int status) {
- throw new SecurityException();
- }
-
- public void checkExec(String cmd) {
- throw new SecurityException();
- }
-
- public void checkLink(String lib) {
- throw new SecurityException();
- }
-
- public void checkRead(FileDescriptor fd) {
- throw new SecurityException();
- }
-
- public void checkRead(String file) {
- throw new SecurityException();
- }
-
- public void checkRead(String file, Object context) {
- throw new SecurityException();
- }
-
- public void checkWrite(FileDescriptor fd) {
- throw new SecurityException();
- }
-
- public void checkWrite(String file) {
- throw new SecurityException();
- }
-
- public void checkDelete(String file) {
- throw new SecurityException();
- }
-
- public void checkConnect(String host, int port) {
- throw new SecurityException();
- }
-
- public void checkConnect(String host, int port, Object context) {
- throw new SecurityException();
- }
-
- public void checkListen(int port) {
- throw new SecurityException();
- }
-
- public void checkAccept(String host, int port) {
- throw new SecurityException();
- }
-
- public void checkPropertiesAccess() {
- throw new SecurityException();
- }
-
- public void checkPropertyAccess(String key) {
- throw new SecurityException();
- }
-
- public void checkPropertyAccess(String key, String def) {
- throw new SecurityException();
- }
-
- public boolean checkTopLevelWindow(Object window) {
- return false;
- }
-
- public void checkPackageAccess(String pkg) {
- throw new SecurityException();
- }
-
- public void checkPackageDefinition(String pkg) {
- throw new SecurityException();
- }
-
- public void checkSetFactory() {
- throw new SecurityException();
- }
- }
-