code: public static void setFactory(AuthConfigFactory factory)
     {
         SecurityManager securityManager = System.getSecurityManager();
         if (securityManager != null)
             securityManager.checkPermission(setFactorySecurityPermission);
  
        _factory = factory;
     }
docs: <p>Set the system-wide AuthConfigFactory implementation.</p>
  
  <p>If an implementation was set previously, it will be replaced.</p>
  
  <p>Listeners are not notified of a change to the registered factory.</p>
  
  @param factory The AuthConfigFactory instance, which may be null.
  
  @throws SecurityException If the caller does not have permission to set the factory.