FileDocCategorySizeDatePackage
IESecurity.javaAPI DocJMF 2.1.1e3513Mon May 12 12:20:50 BST 2003com.sun.media

IESecurity

public class IESecurity extends Object implements JMFSecurity
public 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 voiddummyMethod()


    
public java.lang.StringgetName()

	return "internetexplorer";
    
public booleanisLinkPermissionEnabled()

       return jview;
       //return true;
    
public voidloadLibrary(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 voidpermissionFailureNotification(int permission)

    
public voidrequestPermission(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 voidrequestPermission(java.lang.reflect.Method[] m, java.lang.Class[] c, java.lang.Object[][] args, int request, java.lang.String parameter)

	requestPermission(m, c, args, request);