Methods Summary |
---|
public static void | dummyMethod()
security = new DefaultSecurity();
try {
cls = security.getClass();
clsLoader = cls.getClassLoader();
dummyMethodRef = cls.getMethod("dummyMethod",new Class[0]);
} catch (Exception e) {
System.out.println(e);
}
|
public java.lang.String | getName()
return "default";
|
public boolean | isLinkPermissionEnabled()
if (clsLoader == null) {
return true;
}
else {
return false;
}
|
public void | loadLibrary(java.lang.String name)
if (clsLoader == null) {
System.loadLibrary(name);
}
else {
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 (clsLoader == null) {
m[0] = dummyMethodRef;
c[0] = cls;
args[0] = null;
// Dont throw SecurityException if clsLoader is not null
// as we may be able to get some permissions.
// }
// else {
// throw new SecurityException("DefaultSecurity : Cannot request permission");
// }
|
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);
|