Package org.jboss.security.config

Examples of org.jboss.security.config.ControlFlag


      int overallDecision = DENY;

      for (int i = 0; i < super.modules.size(); i++)
      {
         ACLProvider module = super.modules.get(i);
         ControlFlag flag = super.controlFlags.get(i);
         int decision = DENY;
         try
         {
            decision = module.isAccessGranted(resource, identity, permission) ? PERMIT : DENY;
            if (trace)
View Full Code Here


         String flag = attrs.getValue("flag");
         if (flag == null)
            flag = "REQUIRED";
         flag = StringPropertyReplacer.replaceProperties(flag.trim());

         ControlFlag controlFlag = this.controlFlags.get(flag.toUpperCase());
         if (controlFlag == null)
            controlFlag = ControlFlag.REQUIRED;

         AuthorizationModuleEntry entry = new AuthorizationModuleEntry(code);
         entry.setControlFlag(controlFlag);
View Full Code Here

         String flag = attrs.getValue("flag");
         if (flag == null)
            flag = "REQUIRED";
         flag = StringPropertyReplacer.replaceProperties(flag.trim());

         ControlFlag controlFlag = this.controlFlags.get(flag.toUpperCase());
         if (controlFlag == null)
            controlFlag = ControlFlag.REQUIRED;

         ACLProviderEntry entry = new ACLProviderEntry(code);
         entry.setControlFlag(controlFlag);
View Full Code Here

         String flag = attrs.getValue("flag");
         if (flag == null)
            flag = "REQUIRED";
         flag = StringPropertyReplacer.replaceProperties(flag.trim());

         ControlFlag controlFlag = this.controlFlags.get(flag.toUpperCase());
         if (controlFlag == null)
            controlFlag = ControlFlag.REQUIRED;

         IdentityTrustModuleEntry entry = new IdentityTrustModuleEntry(code);
         entry.setControlFlag(controlFlag);
View Full Code Here

     
      IdentityTrustInfo iti = aPolicy.getIdentityTrustInfo();
      IdentityTrustModuleEntry[] itmearr = iti.getIdentityTrustModuleEntry();
      for(IdentityTrustModuleEntry itme: itmearr)
      {
         ControlFlag cf = itme.getControlFlag();
         if(cf == null)
            cf = ControlFlag.REQUIRED;
        
         this.controlFlags.add(cf);
         modules.add(instantiateModule(itme.getName(), itme.getOptions()));
View Full Code Here

   {
      int length = modules.size();
      for(int i = 0; i < length; i++)
      {
         IdentityTrustModule module = (IdentityTrustModule)modules.get(i);
         ControlFlag flag = (ControlFlag)this.controlFlags.get(i);
         TrustDecision decision = NOTAPPLICABLE;
         try
         {
            decision = module.isTrusted();
         }
View Full Code Here

        IdentityTrustInfo identityTrustInfo = new IdentityTrustInfo(securityDomain);
        List<ModelNode> modules = node.get(TRUST_MODULES).asList();
        for (ModelNode module : modules) {
            String codeName = module.require(CODE).asString();
            ControlFlag controlFlag = ControlFlag.valueOf(module.require(FLAG).asString());
            Map<String, Object> options = extractOptions(module);
            IdentityTrustModuleEntry entry = new IdentityTrustModuleEntry(codeName, options);
            entry.setControlFlag(controlFlag);
            identityTrustInfo.add(entry);
View Full Code Here

        ACLInfo aclInfo = new ACLInfo(securityDomain);
        List<ModelNode> modules = node.get(ACL_MODULES).asList();
        for (ModelNode module : modules) {
            String codeName = module.require(CODE).asString();
            ControlFlag controlFlag = ControlFlag.valueOf(module.require(FLAG).asString());
            Map<String, Object> options = extractOptions(module);
            ACLProviderEntry entry = new ACLProviderEntry(codeName, options);
            entry.setControlFlag(controlFlag);
            aclInfo.add(entry);
View Full Code Here

        AuthorizationInfo authzInfo = new AuthorizationInfo(securityDomain);
        List<ModelNode> modules = node.get(POLICY_MODULES).asList();
        for (ModelNode module : modules) {
            String codeName = this.extractCode(module, ModulesMap.AUTHORIZATION_MAP);
            ControlFlag controlFlag = ControlFlag.valueOf(module.require(FLAG).asString());
            Map<String, Object> options = extractOptions(module);
            AuthorizationModuleEntry authzModuleEntry = new AuthorizationModuleEntry(codeName, options);
            authzModuleEntry.setControlFlag(controlFlag);
            authzInfo.add(authzModuleEntry);
View Full Code Here

      AuthorizationModuleEntry[] entries = authzInfo.getAuthorizationModuleEntry();
      int len = entries != null ? entries.length : 0;
      for(int i = 0 ; i < len; i++)
      {
         AuthorizationModuleEntry entry = entries[i];
         ControlFlag flag = entry.getControlFlag();
         if(flag == null)
         {
            if(trace)
               log.trace("Null Control flag for entry:"+entry+". Defaults to REQUIRED!");
            flag = ControlFlag.REQUIRED;
View Full Code Here

TOP

Related Classes of org.jboss.security.config.ControlFlag

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.