Package org.jboss.security.config

Examples of org.jboss.security.config.AuditInfo


        }

        // audit
        node = operation.get(Element.AUDIT.getLocalName());
        if (node.isDefined()) {
            AuditInfo auditInfo = new AuditInfo(securityDomain);
            modules = node.asList();
            for (ModelNode module : modules) {
                String codeName = module.require(Attribute.CODE.getLocalName()).asString();
                Map<String, Object> options = new HashMap<String, Object>();
                if (module.hasDefined(MODULE_OPTIONS)) {
                    for (Property prop : module.get(MODULE_OPTIONS).asPropertyList()) {
                        options.put(prop.getName(), prop.getValue().asString());
                    }
                }
                AuditProviderEntry entry = new AuditProviderEntry(codeName, options);
                auditInfo.add(entry);

            }
            applicationPolicy.setAuditInfo(auditInfo);
        }
View Full Code Here


      {
         ac = new JBossAuditContext(securityDomain);
         ApplicationPolicy ap = SecurityConfiguration.getApplicationPolicy(securityDomain);
         if(ap != null)
         {
            AuditInfo ai = ap.getAuditInfo();
            if(ai != null)
            { 
               AuditProviderEntry[] apeArr = ai.getAuditProviderEntry();
               List<AuditProviderEntry> list = Arrays.asList(apeArr);
               for(AuditProviderEntry ape:list)
               {
                  String pname = ape.getName();
                  try
View Full Code Here

      {
         ac = new JBossAuditContext(securityDomain);
         ApplicationPolicy ap = SecurityConfiguration.getApplicationPolicy(securityDomain);
         if(ap != null)
         {
            AuditInfo ai = ap.getAuditInfo();
            if(ai != null)
            { 
               AuditProviderEntry[] apeArr = ai.getAuditProviderEntry();
               List<AuditProviderEntry> list = Arrays.asList(apeArr);
               for(AuditProviderEntry ape:list)
               {
                  String pname = ape.getName();
                  try
View Full Code Here

/*  68 */       mi.setName(aPolicy.getName());
/*  69 */       child = mi;
/*     */     }
/*  72 */     else if ((child == null) && ("audit".equals(localName)))
/*     */     {
/*  74 */       AuditInfo ai = new AuditInfo(aPolicy.getName());
/*  75 */       child = ai;
/*     */     }
/*  78 */     else if ((child == null) && ("identity-trust".equals(localName)))
/*     */     {
/*  80 */       IdentityTrustInfo ai = new IdentityTrustInfo(aPolicy.getName());
View Full Code Here

/*     */     {
/*  57 */       ac = new JBossAuditContext(this.securityDomain);
/*  58 */       ApplicationPolicy ap = SecurityConfiguration.getApplicationPolicy(this.securityDomain);
/*  59 */       if (ap != null)
/*     */       {
/*  61 */         AuditInfo ai = ap.getAuditInfo();
/*  62 */         if (ai != null)
/*     */         {
/*  64 */           AuditProviderEntry[] apeArr = ai.getAuditProviderEntry();
/*  65 */           List list = Arrays.asList(apeArr);
/*  66 */           for (AuditProviderEntry ape : list)
/*     */           {
/*  68 */             String pname = ape.getName();
/*     */             try
View Full Code Here

      {
         child = new MappingInfo(aPolicy.getName());
      }
      else if (child == null && "audit".equals(localName))
      {
         child = new AuditInfo(aPolicy.getName());
      }
      else if (child == null && "identity-trust".equals(localName))
      {
         child = new IdentityTrustInfo(aPolicy.getName());
      }
View Full Code Here

    private boolean processAudit(String securityDomain, ModelNode node, ApplicationPolicy applicationPolicy) {
        node = peek(node, AUDIT, CLASSIC);
        if (node == null)
            return false;

        AuditInfo auditInfo = new AuditInfo(securityDomain);
        List<ModelNode> modules = node.get(PROVIDER_MODULES).asList();
        for (ModelNode module : modules) {
            String codeName = module.require(CODE).asString();
            Map<String, Object> options = extractOptions(module);
            AuditProviderEntry entry = new AuditProviderEntry(codeName, options);
            auditInfo.add(entry);

        }
        applicationPolicy.setAuditInfo(auditInfo);
        return true;
    }
View Full Code Here

    private boolean processAudit(String securityDomain, ModelNode node, ApplicationPolicy applicationPolicy) {
        node = peek(node, AUDIT, CLASSIC);
        if (node == null)
            return false;

        AuditInfo auditInfo = new AuditInfo(securityDomain);
        List<ModelNode> modules = node.get(PROVIDER_MODULES).asList();
        for (ModelNode module : modules) {
            String codeName = module.require(CODE).asString();
            Map<String, Object> options = extractOptions(module);
            AuditProviderEntry entry = new AuditProviderEntry(codeName, options);
            auditInfo.add(entry);

            String moduleName = module.get(MODULE).asString();
            if(module.hasDefined(MODULE) && moduleName != null &&  moduleName.length() > 0 ) {
                auditInfo.setJBossModuleName(moduleName);
            }
        }
        applicationPolicy.setAuditInfo(auditInfo);
        return true;
    }
View Full Code Here

TOP

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

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.