Package net.jini.security

Examples of net.jini.security.ProxyPreparer


  this.activationID = activationID;
  init(configOptions, null);
    }

    void initAsSubject(Configuration config) throws Exception {
  ProxyPreparer activationSystemPreparer =
      (ProxyPreparer) Config.getNonNullEntry(
    config, NORM, "activationSystemPreparer", ProxyPreparer.class,
    new BasicProxyPreparer());
  activationSystem =
      (ActivationSystem) activationSystemPreparer.prepareProxy(
    ActivationGroup.getSystem());
  ProxyPreparer activationIdPreparer = (ProxyPreparer)
      Config.getNonNullEntry(
    config, NORM, "activationIdPreparer", ProxyPreparer.class,
    new BasicProxyPreparer());
  activationID = (ActivationID) activationIdPreparer.prepareProxy(
      activationID);
  super.initAsSubject(config);
    }
View Full Code Here


            throw e.getException();
        }
    }
   
    private void doInit(Configuration config) throws Exception {
        ProxyPreparer activationSystemPreparer =
            (ProxyPreparer) config.getEntry(
                START_PACKAGE, "activationSystemPreparer",
                ProxyPreparer.class, new BasicProxyPreparer());
  if (activationSystemPreparer == null) {
             throw new ConfigurationException(START_PACKAGE
       + ".activationSystemPreparer entry should not be null");
        }
        logger.log(Level.FINE, START_PACKAGE + ".activationSystemPreparer: {0}",
            activationSystemPreparer);
     
  ProxyPreparer activationIdPreparer = (ProxyPreparer)
      config.getEntry(START_PACKAGE, "activationIdPreparer",
      ProxyPreparer.class, new BasicProxyPreparer());
  if (activationIdPreparer == null) {
             throw new ConfigurationException(START_PACKAGE
       + ".activationIdPreparer entry should not be null");
        }
        logger.log(Level.FINE, START_PACKAGE + ".activationIdPreparer: {0}",
            activationIdPreparer);
     
        // Prepare activation subsystem
  /*
   * ActivationGroup is trusted and returned ActivationSystem
   * might already have been prepared by the group itself.
   */
  activationSystem = (ActivationSystem)
      activationSystemPreparer.prepareProxy(
                ActivationGroup.getSystem());
        logger.log(Level.FINE, "Prepared ActivationSystem: {0}",
            activationSystem);
  activationID = (ActivationID
      activationIdPreparer.prepareProxy(activationID);
        logger.log(Level.FINEST, "Prepared ActivationID: {0}",
            activationID);

        /**
   * Would like to get this entry sooner, but need to use
View Full Code Here

              listener,
              mHandback,
              leaseDuration)
      logger.log(Level.FINEST, "Preparing fiddler registration");
      Configuration c = config.getConfiguration();
      ProxyPreparer p = new BasicProxyPreparer();
      if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
      p = (ProxyPreparer) c.getEntry("test",
                 "fiddlerRegistrationPreparer",
                 ProxyPreparer.class);
      }
      registrationMap.put(p.prepareProxy(ldsReg),listener);
  } catch (ConfigurationException e) {
      throw new RemoteException("Configuration Error", e);
  }
    }//end doRegistration
View Full Code Here

  Configuration c = config.getConfiguration();
  if (!(c instanceof com.sun.jini.qa.harness.QAConfiguration)) { // if none configuration
      return reg.getLease();
  }
  try {
      ProxyPreparer p = (ProxyPreparer) c.getEntry("test",
               "fiddlerLeasePreparer",
               ProxyPreparer.class);
      Lease l = reg.getLease();
      logger.log(Level.FINEST, "Returning prepared fiddler lease");
      return (Lease) p.prepareProxy(l);
  } catch (ConfigurationException e) {
      throw new RemoteException("Configuration Error", e);
  }
    }
View Full Code Here

                "com.sun.jini.mercury.TransientMercuryBogusImpl",
                new String[] {
        "http://resendes:8089/mercury_service_trans.config"
    });
        LifeCycle DefaultLifeCycle = nasdWithoutExtras.getLifeCycle();
        ProxyPreparer DefaultPreparer = nasdWithoutExtras.getServicePreparer();
       
  String sharedVmLog = "/tmp/sharedvm.log";
        String[] sharedvm_props = new String[] {// server properties
        "com.sun.jini.start.activatewrapper.debug", "init",
          };
View Full Code Here

  Configuration c = QAConfig.getConfig().getConfiguration();
  if (!(c instanceof com.sun.jini.qa.harness.QAConfiguration)) { // if none configuration
      return (FiddlerAdmin) admin;
  }
  try {
      ProxyPreparer p = (ProxyPreparer) c.getEntry("test",
               "fiddlerAdminPreparer",
               ProxyPreparer.class);
      return ((FiddlerAdmin) p.prepareProxy(admin));
  } catch (ConfigurationException e) {
      throw new TestException("Configuration Error", e);
  }
    }//end getFiddlerAdmin
View Full Code Here

      throw new TestException(
    "Could not get service's Administrable interface");
  }

        Configuration serviceConf = getConfig().getConfiguration();
  ProxyPreparer preparer = new BasicProxyPreparer();
  if (serviceConf instanceof com.sun.jini.qa.harness.QAConfiguration) {
      preparer =
    (ProxyPreparer) serviceConf.getEntry("test",
                 "mercuryAdminPreparer",
                 ProxyPreparer.class);
  }
  logger.log(Level.INFO, "\tadmin proxy preparer: " + preparer);
  admin = preparer.prepareProxy(admin);
  logger.log(Level.INFO, "\tPrepared admin proxy: " + admin);
 
  return admin;
   
View Full Code Here

      throw new TestException(
    "MailboxRegistration argument cannot be null");
  }

        Configuration serviceConf = getConfig().getConfiguration();
        ProxyPreparer preparer = new BasicProxyPreparer();
        if (serviceConf instanceof com.sun.jini.qa.harness.QAConfiguration) {
            preparer =
    (ProxyPreparer) serviceConf.getEntry("test",
                 "mercuryListenerPreparer",
                 ProxyPreparer.class);
        }
  logger.log(Level.INFO, "\tmailbox listener preparer: " + preparer);
  RemoteEventListener proxy =
      (RemoteEventListener) preparer.prepareProxy(mr.getListener());
  logger.log(Level.INFO, "\tPrepared mailbox listener proxy: " + proxy);
 
  return proxy;
   
View Full Code Here

      throw new TestException(
    "MailboxPullRegistration argument cannot be null");
  }

        Configuration serviceConf = getConfig().getConfiguration();
        ProxyPreparer preparer = new BasicProxyPreparer();
        if (serviceConf instanceof com.sun.jini.qa.harness.QAConfiguration) {
            preparer =
    (ProxyPreparer) serviceConf.getEntry("test",
                 "mercuryListenerPreparer",
                 ProxyPreparer.class);
        }
  logger.log(Level.INFO, "\tmailbox listener preparer: " + preparer);
  RemoteEventListener proxy =
      (RemoteEventListener) preparer.prepareProxy(mr.getListener());
  logger.log(Level.INFO, "\tPrepared mailbox listener proxy: " + proxy);
 
  return proxy;
   
View Full Code Here

      throw new TestException(
    "MailboxRegistration argument cannot be null");
  }

        Configuration serviceConf = getConfig().getConfiguration();
        ProxyPreparer preparer = new BasicProxyPreparer();
        if (serviceConf instanceof com.sun.jini.qa.harness.QAConfiguration) {
            preparer =
    (ProxyPreparer) serviceConf.getEntry("test",
                 "mercuryLeasePreparer",
                 ProxyPreparer.class);
        }
  logger.log(Level.INFO, "\tmailbox lease preparer: " + preparer);
  Lease proxy =
      (Lease) preparer.prepareProxy(mr.getLease());
  logger.log(Level.INFO, "\tPrepared mailbox lease proxy: " + proxy);
 
  return proxy;
   
View Full Code Here

TOP

Related Classes of net.jini.security.ProxyPreparer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.