IESecuritypublic class IESecurity extends Object implements JMFSecuritypublic final synchronized class com/ms/security/PermissionID extends java.lang.Object
public static final com/ms/security/PermissionID SYSTEM;
public static final com/ms/security/PermissionID FILEIO;
public static final com/ms/security/PermissionID NETIO;
public static final com/ms/security/PermissionID THREAD;
public static final com/ms/security/PermissionID PROPERTY;
public static final com/ms/security/PermissionID EXEC;
public static final com/ms/security/PermissionID REFLECTION;
public static final com/ms/security/PermissionID PRINTING;
public static final com/ms/security/PermissionID SECURITY;
public static final com/ms/security/PermissionID REGISTRY;
public static final com/ms/security/PermissionID CLIENTSTORE;
public static final com/ms/security/PermissionID UI;
public static final com/ms/security/PermissionID SYSSTREAMS;
public static final com/ms/security/PermissionID USERFILEIO;
public static final com/ms/security/PermissionID MULTIMEDIA; |
Fields Summary |
---|
public static JMFSecurity | security | public static boolean | jview | private static Class | cls | private static Method | dummyMethodRef | public static final boolean | DEBUG |
Constructors Summary |
---|
private IESecurity()
security = new IESecurity();
cls = security.getClass();
try {
dummyMethodRef = cls.getMethod("dummyMethod",new Class[0]);
} catch (Exception e) {
}
|
Methods Summary |
---|
public static void | dummyMethod()
| public java.lang.String | getName()
return "internetexplorer";
| public boolean | isLinkPermissionEnabled()
return jview;
//return true;
| public void | loadLibrary(java.lang.String name)
// if (jview)
// System.loadLibrary(name);
// else
// throw new UnsatisfiedLinkError("Unable to get link privilege to " + name);
try {
try {
if (!jview) {
PolicyEngine.assertPermission(PermissionID.SYSTEM);
}
} catch (Throwable t) {
}
// System.out.println("Call System.loadLibrary " + name);
System.loadLibrary(name);
} catch (Exception e) {
if (DEBUG)
System.err.println("IESecurity: Unable to load library " + name);
throw new UnsatisfiedLinkError("Unable to get link privilege to " + name);
} catch (Error e) {
if (DEBUG)
System.err.println("IESecurity: Unable to load library " + name);
throw new UnsatisfiedLinkError("Unable to get link privilege to " + name);
}
| public void | permissionFailureNotification(int permission)
| public void | requestPermission(java.lang.reflect.Method[] m, java.lang.Class[] c, java.lang.Object[][] args, int request)
// if (!jview)
// throw new SecurityException("IESecurity : Cannot request permission");
m[0] = dummyMethodRef;
c[0] = cls;
args[0] = null;
| public void | requestPermission(java.lang.reflect.Method[] m, java.lang.Class[] c, java.lang.Object[][] args, int request, java.lang.String parameter)
requestPermission(m, c, args, request);
|
|