Package org.jboss.security

Examples of org.jboss.security.AuthenticationManager


      throw new RuntimeException("PER_VM not supported for this interceptor factory, only PER_CLASS");
   }

   public Object createPerClass(Advisor advisor)
   {
      AuthenticationManager manager = (AuthenticationManager)advisor.getDefaultMetaData().getMetaData("security", "authentication-manager");
      RealmMapping mapping = (RealmMapping)advisor.getDefaultMetaData().getMetaData("security", "realm-mapping");
      if (manager == null)
      {
         SecurityDomain domain = (SecurityDomain)advisor.resolveAnnotation(SecurityDomain.class);
         if (domain == null) throw new RuntimeException("Unable to determine security domain");
View Full Code Here


      throw new RuntimeException("PER_VM not supported for this interceptor factory, only PER_CLASS");
   }

   public Object createPerClass(Advisor advisor)
   {
      AuthenticationManager manager = (AuthenticationManager)advisor.getDefaultMetaData().getMetaData("security", "authentication-manager");
      RealmMapping mapping = (RealmMapping)advisor.getDefaultMetaData().getMetaData("security", "realm-mapping");
      if (manager == null)
      {
         SecurityDomain domain = (SecurityDomain)advisor.resolveAnnotation(SecurityDomain.class);
         if (domain == null) throw new RuntimeException("Unable to determine security domain");
View Full Code Here

/* 115 */     return auditManager;
/*     */   }
/*     */
/*     */   public AuthenticationManager getAuthenticationManager(String securityDomain)
/*     */   {
/* 120 */     AuthenticationManager am = null;
/*     */     try
/*     */     {
/* 123 */       am = (AuthenticationManager)this.authMgrMap.get(securityDomain);
/* 124 */       if (am == null)
/*     */       {
View Full Code Here

/* 300 */     SecurityConstantsBridge.defaultCacheResolution = defaultCacheResolution;
/*     */   }
/*     */
/*     */   public SecurityDomainContext createSecurityDomainContext(String domain) throws Exception
/*     */   {
/* 305 */     AuthenticationManager am = createAuthenticationManager(domain);
/* 306 */     if (this.cachePolicy == null)
/*     */     {
/* 308 */       this.cachePolicy = createDefaultCachePolicy();
/*     */     }
/*     */
View Full Code Here

/*     */     {
/* 654 */       Class[] parameterTypes = { String.class, CallbackHandler.class };
/* 655 */       Constructor ctor = securityMgrClass.getConstructor(parameterTypes);
/* 656 */       CallbackHandler handler = (CallbackHandler)callbackHandlerClass.newInstance();
/* 657 */       Object[] args = { securityDomain, handler };
/* 658 */       AuthenticationManager securityMgr = (AuthenticationManager)ctor.newInstance(args);
/* 659 */       log.debug("Created securityMgr=" + securityMgr);
/* 660 */       CachePolicy cachePolicy = lookupCachePolicy(securityDomain);
/* 661 */       sdc = new SecurityDomainContext(securityMgr, cachePolicy);
/*     */
/* 663 */       setSecurityDomainCache(securityMgr, cachePolicy);
View Full Code Here

/*  851 */         log.debug("Setting security domain from: " + confSecurityDomain);
/*  852 */         String domainCtx = "java:/jaas/" + unprefixed + "/domainContext";
/*  853 */         SecurityDomainContext sdc = (SecurityDomainContext)iniCtx.lookup(domainCtx);
/*  854 */         Object securityMgr = sdc.getSecurityManager();
/*      */
/*  857 */         AuthenticationManager ejbS = (AuthenticationManager)securityMgr;
/*  858 */         RealmMapping rM = (RealmMapping)securityMgr;
/*  859 */         container.setSecurityManager(ejbS);
/*  860 */         container.setRealmMapping(rM);
/*      */
/*  862 */         container.setSecurityManagement((ISecurityManagement)unit.getAttachment("EJB.securityManagement"));
View Full Code Here

/* 45 */     throw new RuntimeException("PER_VM not supported for this interceptor factory, only PER_CLASS");
/*    */   }
/*    */
/*    */   public Object createPerClass(Advisor advisor)
/*    */   {
/* 50 */     AuthenticationManager manager = (AuthenticationManager)advisor.getDefaultMetaData().getMetaData("security", "authentication-manager");
/* 51 */     RealmMapping mapping = (RealmMapping)advisor.getDefaultMetaData().getMetaData("security", "realm-mapping");
/* 52 */     if (manager == null)
/*    */     {
/* 54 */       SecurityDomain domain = (SecurityDomain)advisor.resolveAnnotation(SecurityDomain.class);
/* 55 */       if (domain == null) throw new RuntimeException("Unable to determine security domain");
View Full Code Here

/*    */     }
/*    */     catch (NamingException e)
/*    */     {
/* 65 */       throw new RuntimeException(e);
/*    */     }
/* 67 */     AuthenticationManager manager = (AuthenticationManager)domain;
/* 68 */     RealmMapping mapping = (RealmMapping)domain;
/* 69 */     if (manager == null) throw new RuntimeException("Unable to find Security Domain");
/*    */
/* 71 */     CodeSource ejbCS = advisor.getClazz().getProtectionDomain().getCodeSource();
/* 72 */     String ejbName = ((EJBContainer)advisor).getEjbName();
View Full Code Here

/* 43 */     throw new RuntimeException("PER_VM not supported for this interceptor factory, only PER_CLASS");
/*    */   }
/*    */
/*    */   public Object createPerClass(Advisor advisor)
/*    */   {
/* 48 */     AuthenticationManager manager = (AuthenticationManager)advisor.getDefaultMetaData().getMetaData("security", "authentication-manager");
/* 49 */     if (manager == null)
/*    */     {
/* 51 */       SecurityDomain domain = (SecurityDomain)advisor.resolveAnnotation(SecurityDomain.class);
/* 52 */       if (domain == null) throw new RuntimeException("Unable to determine security domain");
/*    */       try
View Full Code Here

/* 45 */     throw new RuntimeException("PER_VM not supported for this interceptor factory, only PER_CLASS");
/*    */   }
/*    */
/*    */   public Object createPerClass(Advisor advisor)
/*    */   {
/* 50 */     AuthenticationManager manager = (AuthenticationManager)advisor.getDefaultMetaData().getMetaData("security", "authentication-manager");
/* 51 */     RealmMapping mapping = (RealmMapping)advisor.getDefaultMetaData().getMetaData("security", "realm-mapping");
/* 52 */     if (manager == null)
/*    */     {
/* 54 */       SecurityDomain domain = (SecurityDomain)advisor.resolveAnnotation(SecurityDomain.class);
/* 55 */       if (domain == null) throw new RuntimeException("Unable to determine security domain");
View Full Code Here

TOP

Related Classes of org.jboss.security.AuthenticationManager

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.