Package org.jboss.security.authorization

Examples of org.jboss.security.authorization.AuthorizationModule


   throws AuthorizationException
   {
      int length = modules.size();
      for(int i = 0; i < length; i++)
      {
         AuthorizationModule module = (AuthorizationModule)modules.get(i);
         boolean bool = module.commit();
         if(!bool)
            throw new AuthorizationException("commit on modules failed");
      }
   }
View Full Code Here


      }
   }
  
   private AuthorizationModule instantiateModule(String name, Map map) throws PrivilegedActionException
   {
      AuthorizationModule am = null;
      ClassLoader tcl = SecurityActions.getContextClassLoader();
      try
      {
         Class clazz = tcl.loadClass(name);
         am = (AuthorizationModule)clazz.newInstance();
      }
      catch ( Exception e)
      {
         log.debug("Error instantiating AuthorizationModule:",e);
      }
      if(am == null)
         throw new IllegalStateException("AuthorizationModule has not " +
               "been instantiated");
      am.initialize(this.authenticatedSubject, this.callbackHandler,
            this.sharedState,map);
      return am;
   }
View Full Code Here

   throws AuthorizationException
   {
      int length = modules.size();
      for(int i = 0; i < length; i++)
      {
         AuthorizationModule module = (AuthorizationModule)modules.get(i);
         boolean bool = module.abort();
         if(!bool)
            throw new AuthorizationException("abort on modules failed");
      }
   }
View Full Code Here

   }
  
   private AuthorizationModule instantiateModule(String name, Map<String,Object> map)
   throws PrivilegedActionException
   {
      AuthorizationModule am = null;
      ClassLoader tcl = SecurityActions.getContextClassLoader();
      try
      {
         Class<?> clazz = tcl.loadClass(name);
         am = (AuthorizationModule)clazz.newInstance();
      }
      catch ( Exception e)
      {
         log.debug("Error instantiating AuthorizationModule:",e);
      }
      if(am == null)
         throw new IllegalStateException("AuthorizationModule has not " +
               "been instantiated");
      am.initialize(this.authenticatedSubject, this.callbackHandler,
            this.sharedState,map);
      return am;
   }
View Full Code Here

      int overallDecision = DENY;
     
      int length = modules.size();
      for(int i = 0; i < length; i++)
      {
         AuthorizationModule module = (AuthorizationModule)modules.get(i);
         ControlFlag flag = (ControlFlag)this.controlFlags.get(i);
         int decision = DENY;
         try
         {
            decision = module.authorize(resource);
         }
         catch(Exception ae)
         {
            decision = DENY;
            if(moduleException == null)
View Full Code Here

   throws AuthorizationException
   {
      int length = modules.size();
      for(int i = 0; i < length; i++)
      {
         AuthorizationModule module = (AuthorizationModule)modules.get(i);
         boolean bool = module.commit();
         if(!bool)
            throw new AuthorizationException("commit on modules failed");
      }
   }
View Full Code Here

   throws AuthorizationException
   {
      int length = modules.size();
      for(int i = 0; i < length; i++)
      {
         AuthorizationModule module = (AuthorizationModule)modules.get(i);
         boolean bool = module.abort();
         if(!bool)
            throw new AuthorizationException("abort on modules failed");
      }
   }
View Full Code Here

      }
   }
  
   private AuthorizationModule instantiateModule(String name, Map map) throws PrivilegedActionException
   {
      AuthorizationModule am = null;
      ClassLoader tcl = SecurityActions.getContextClassLoader();
      try
      {
         Class clazz = tcl.loadClass(name);
         am = (AuthorizationModule)clazz.newInstance();
      }
      catch ( Exception e)
      {
         log.debug("Error instantiating AuthorizationModule:",e);
      }
      if(am == null)
         throw new IllegalStateException("AuthorizationModule has not " +
               "been instantiated");
      am.initialize(this.authenticatedSubject, this.callbackHandler,
            this.sharedState,map);
      return am;
   }
View Full Code Here

/* 181 */     int overallDecision = -1;
/*     */
/* 183 */     int length = this.modules.size();
/* 184 */     for (int i = 0; i < length; i++)
/*     */     {
/* 186 */       AuthorizationModule module = (AuthorizationModule)this.modules.get(i);
/* 187 */       ControlFlag flag = (ControlFlag)this.controlFlags.get(i);
/* 188 */       int decision = -1;
/*     */       try
/*     */       {
/* 191 */         decision = module.authorize(resource);
/*     */       }
/*     */       catch (Exception ae)
/*     */       {
/* 195 */         decision = -1;
/* 196 */         if (moduleException == null) {
View Full Code Here

/*     */     throws AuthorizationException
/*     */   {
/* 245 */     int length = this.modules.size();
/* 246 */     for (int i = 0; i < length; i++)
/*     */     {
/* 248 */       AuthorizationModule module = (AuthorizationModule)this.modules.get(i);
/* 249 */       boolean bool = module.commit();
/* 250 */       if (!bool)
/* 251 */         throw new AuthorizationException("commit on modules failed");
/*     */     }
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.security.authorization.AuthorizationModule

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.