Package net.jini.security

Examples of net.jini.security.BasicProxyPreparer


      Hello serverProxy = (Hello) serverExporter.export(server);

      KerberosPrincipal cp = cps[1];
      helloProxies = new Hello[clientConstraintsArr.length];
      for (int i = 0; i < clientConstraintsArr.length; i++) {
    BasicProxyPreparer preparer = new BasicProxyPreparer(
        true,
        new BasicMethodConstraints(clientConstraintsArr[i]),
        null);
    helloProxies[i] = (Hello) preparer.prepareProxy(serverProxy);
      }
      initTests(initRuns, repeatRuns);
      initOk = true;
  } catch (Exception e) {
      throw new RuntimeException("endpoints init failure", e);
View Full Code Here


        /* Lookup service proxy preparer */
        registrarPreparer = (ProxyPreparer)config.getEntry
                                                   (COMPONENT_NAME,
                                                    "registrarPreparer",
                                                    ProxyPreparer.class,
                                                    new BasicProxyPreparer());
        /* Task manager */
        try {
            discoveryTaskMgr = (TaskManager)config.getEntry(COMPONENT_NAME,
                                                            "taskManager",
                                                            TaskManager.class);
View Full Code Here

    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

        if (servicePreparer == null) {
            servicePreparer =
            (ProxyPreparer) Config.getNonNullEntry(config,
                ServiceStarter.START_PACKAGE,
                "servicePreparer", ProxyPreparer.class,
                new BasicProxyPreparer());
        }
           
        /* Warn user of inaccessible codebase(s) */
        HTTPDStatus.httpdWarning(getExportCodebase());

View Full Code Here

   
    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}",
View Full Code Here

        {
            super();
            this.regInfo = regInfo;
      Configuration c = getConfig().getConfiguration();
      Exporter exporter = QAConfig.getDefaultExporter();
      registrarPreparer = new BasicProxyPreparer();
      if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
    try {
        exporter = (Exporter) c.getEntry("test",
                 "fiddlerListenerExporter",
                 Exporter.class);
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.BasicProxyPreparer

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.