This method of the StandardSecurityManager Class determines whether classes within the current execution context, based on the call stack of the current thread, are allowed to install a networking object factory.
public void checkSetFactory();
The check succeeds only if all the classes found on the call stack are fully trusted. This method overrides the java.lang.SecurityManager.checkSetFactory method.
SecurityException if the security check fails.