📄 securitymanager.java
字号:
/* libaegisvm - The Aegis Virtual Machine for executing Java bytecode Copyright (C) 2001-2002 Philip W. L. Fong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA*/package java.lang;import aegis.*;import java.security.*;/** * \todo Not implemented yet. */public class SecurityManager { public SecurityManager() { } protected Class[] getClassContext() { throw new FeatureNotYetImplementedError(); } public Object getSecurityContext() { throw new FeatureNotYetImplementedError(); } public void checkPermission(Permission perm) { if (perm == null) throw new NullPointerException(); // permit everything for now } public void checkPermission(Permission perm, Object context) { if (perm == null) throw new NullPointerException(); // permit everything for now } public void checkCreateClassLoader() { // permit for now } public void checkAccess(Thread t) { // permit for now } public void checkAccess(ThreadGroup g) { // permit for now } public void checkExit(int status) { // permit for now } public void checkExec(String cmd) { // permit for now } public void checkLink(String lib) { // permit for now } public void checkRead(java.io.FileDescriptor fd) { // permit for now } public void checkRead(String file) { // permit for now } public void checkRead(String file, Object context) { // permit for now } public void checkWrite(java.io.FileDescriptor fd) { // permit for now } public void checkWrite(String file) { // permit for now } public void checkDelete(String file) { // permit for now } public void checkConnect(String host, int port) { // permit for now } public void checkConnect(String host, int port, Object context) { // permit for now } public void checkListen(int port) { // permit for now } public void checkAccept(String host, int port) { // permit for now } public void checkMulticast(java.net.InetAddress maddr) { // permit for now } public void checkMulticast(java.net.InetAddress maddr, byte ttl) { // permit for now } public void checkPropertiesAccess() { // permit for now } public void checkPropertiesAccess(String key) { // permit for now } public boolean checkTopLevelWindow(Object window) { // permit for now return true; } public void checkPrintJobAccess() { // permit for now } public void checkSystemClipboardAccess() { // permit for now } public void checkAwtEventQueueAccess() { // permit for now } public void checkPackageAccess(String pkg) { // permit for now } public void checkPackageDefinition(String pkg) { // permit for now } public void checkSetFactory() { // permit for now } public void checkMemberAccess(Class clazz, int which) { // permit for now } public void checkSecurityAccess(String target) { // permit for now } public ThreadGroup getThreadGroup() { throw new FeatureNotYetImplementedError(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -