Package org.jboss.security

Examples of org.jboss.security.SecurityProxyFactory


      Reference ref = new Reference("javax.naming.Context", refAddr, factoryName, null);
      ctx.rebind(DEFAULT_CACHE_POLICY_PATH, ref);
      log.debug("cachePolicyCtxPath="+cacheJndiName);

      // Bind the default SecurityProxyFactory instance under java:/SecurityProxyFactory
      SecurityProxyFactory proxyFactory = (SecurityProxyFactory) securityProxyFactoryClass.newInstance();
      ctx.bind("java:/SecurityProxyFactory", proxyFactory);
      log.debug("SecurityProxyFactory="+proxyFactory);
     
      //Handler custom callbackhandler
      if(callbackHandlerClass != JBossCallbackHandler.class)
View Full Code Here


      Reference ref = new Reference("javax.naming.Context", refAddr, factoryName, null);
      ctx.rebind(DEFAULT_CACHE_POLICY_PATH, ref);
      log.debug("cachePolicyCtxPath="+cacheJndiName);

      // Bind the default SecurityProxyFactory instance under java:/SecurityProxyFactory
      SecurityProxyFactory proxyFactory = (SecurityProxyFactory) securityProxyFactoryClass.newInstance();
      ctx.bind("java:/SecurityProxyFactory", proxyFactory);
      log.debug("SecurityProxyFactory="+proxyFactory);
     
      //Handler custom callbackhandler
      if(callbackHandlerClass != JBossCallbackHandler.class)
View Full Code Here

      ref = new Reference("javax.naming.Context", refAddr, factoryName, null);
      ctx.rebind(DEFAULT_CACHE_POLICY_PATH, ref);
      log.debug("cachePolicyCtxPath="+cacheJndiName);

      // Bind the default SecurityProxyFactory instance under java:/SecurityProxyFactory
      SecurityProxyFactory proxyFactory = (SecurityProxyFactory) securityProxyFactoryClass.newInstance();
      ctx.bind("java:/SecurityProxyFactory", proxyFactory);
      log.debug("SecurityProxyFactory="+proxyFactory);

      // Register the Principal property editor
      PropertyEditorManager.registerEditor(Principal.class, PrincipalEditor.class);
View Full Code Here

            {
               try
               {
                  // Get default SecurityProxyFactory from JNDI at
                  InitialContext iniCtx = new InitialContext();
                  SecurityProxyFactory proxyFactory =
                     (SecurityProxyFactory)iniCtx.lookup(SECURITY_PROXY_FACTORY_NAME);
                  securityProxy = proxyFactory.create(secProxy);
               }
               catch (Exception e)
               {
                  log.error("Failed to initialze DefaultSecurityProxy", e);
               }
View Full Code Here

/* 466 */     factoryName = DefaultCacheObjectFactory.class.getName();
/* 467 */     ref = new Reference("javax.naming.Context", refAddr, factoryName, null);
/* 468 */     ctx.rebind("java:/timedCacheFactory", ref);
/* 469 */     log.debug("cachePolicyCtxPath=" + cacheJndiName);
/*     */
/* 472 */     SecurityProxyFactory proxyFactory = (SecurityProxyFactory)securityProxyFactoryClass.newInstance();
/* 473 */     ctx.bind("java:/SecurityProxyFactory", proxyFactory);
/* 474 */     log.debug("SecurityProxyFactory=" + proxyFactory);
/*     */
/* 477 */     PropertyEditorManager.registerEditor(Principal.class, PrincipalEditor.class);
/* 478 */     PropertyEditorManager.registerEditor(SecurityDomain.class, SecurityDomainEditor.class);
View Full Code Here

/*  86 */         if (!(secProxy instanceof SecurityProxy))
/*     */         {
/*     */           try
/*     */           {
/*  91 */             InitialContext iniCtx = new InitialContext();
/*  92 */             SecurityProxyFactory proxyFactory = (SecurityProxyFactory)iniCtx.lookup("java:/SecurityProxyFactory");
/*     */
/*  94 */             this.securityProxy = proxyFactory.create(secProxy);
/*     */           }
/*     */           catch (Exception e)
/*     */           {
/*  98 */             this.log.error("Failed to initialze DefaultSecurityProxy", e);
/*     */           }
View Full Code Here

      ref = new Reference("javax.naming.Context", refAddr, factoryName, null);
      ctx.rebind(DEFAULT_CACHE_POLICY_PATH, ref);
      log.debug("cachePolicyCtxPath="+cacheJndiName);

      // Bind the default SecurityProxyFactory instance under java:/SecurityProxyFactory
      SecurityProxyFactory proxyFactory = (SecurityProxyFactory) securityProxyFactoryClass.newInstance();
      ctx.bind("java:/SecurityProxyFactory", proxyFactory);
      log.debug("SecurityProxyFactory="+proxyFactory);

      // Register the Principal property editor
      PropertyEditorManager.registerEditor(Principal.class, PrincipalEditor.class);
View Full Code Here

TOP

Related Classes of org.jboss.security.SecurityProxyFactory

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.