ice.util.security
Class SecurityKit

java.lang.Object
  extended byice.util.security.SecurityKit
Direct Known Subclasses:
SecurityKit_pjava12

public abstract class SecurityKit
extends Object

Access to java.lang.SecurityManager installation and java.security.AccessController in jdk 1.2 or its emulation under jdk 1.1


Constructor Summary
SecurityKit()
           
 
Method Summary
static Object doPrivileged(BoxedCode privilegedCode)
          Access to java.security.AccessController.doPrivileged from jdk 1.2 or its emulation under jdk 1.1
protected abstract  Object doPrivilegedImpl(BoxedCode privilegedCode)
           
static Object doUntrusted(BoxedCode untrustedCode)
          Invoke untrustedCode.run in the most restricted sandbox.
protected abstract  Object doUntrustedImpl(BoxedCode untrustedCode)
           
static void installDefaultSecurityManager()
          Access to java.lang.SecurityManager installation from jdk 1.2 or its emulation under jdk 1.1
protected abstract  void installDefaultSecurityManagerImpl()
           
static boolean is_working_doUntrusted()
          Check if doUntrusted does establish security sandbox to run untrusted code.
protected  boolean is_working_doUntrustedImpl()
           
static ClassLoader newURLClassLoader(URL[] urls)
          Access to java.net.URLClassLoader in jdk 1.2 or its emulation under jdk 1.1
protected abstract  ClassLoader newURLClassLoaderImpl(URL[] urls)
           
static boolean usesJava2Security()
          Check if kit uses Java2 security model
protected  boolean usesJava2SecurityImpl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityKit

public SecurityKit()
Method Detail

installDefaultSecurityManager

public static void installDefaultSecurityManager()
Access to java.lang.SecurityManager installation from jdk 1.2 or its emulation under jdk 1.1


newURLClassLoader

public static ClassLoader newURLClassLoader(URL[] urls)
Access to java.net.URLClassLoader in jdk 1.2 or its emulation under jdk 1.1


doPrivileged

public static Object doPrivileged(BoxedCode privilegedCode)
Access to java.security.AccessController.doPrivileged from jdk 1.2 or its emulation under jdk 1.1


doUntrusted

public static Object doUntrusted(BoxedCode untrustedCode)
Invoke untrustedCode.run in the most restricted sandbox.


usesJava2Security

public static boolean usesJava2Security()
Check if kit uses Java2 security model


is_working_doUntrusted

public static boolean is_working_doUntrusted()
Check if doUntrusted does establish security sandbox to run untrusted code. This is not the case only when IB runs as a signed applet inside a browser with jdk 1.1-based JVM


installDefaultSecurityManagerImpl

protected abstract void installDefaultSecurityManagerImpl()

newURLClassLoaderImpl

protected abstract ClassLoader newURLClassLoaderImpl(URL[] urls)

doPrivilegedImpl

protected abstract Object doPrivilegedImpl(BoxedCode privilegedCode)

doUntrustedImpl

protected abstract Object doUntrustedImpl(BoxedCode untrustedCode)

usesJava2SecurityImpl

protected boolean usesJava2SecurityImpl()

is_working_doUntrustedImpl

protected boolean is_working_doUntrustedImpl()