Package org.jboss.security.audit

Examples of org.jboss.security.audit.AuditManager.audit()


      SecurityContext sc = SecurityAssociationActions.getSecurityContext();
      if (sc != null)
      {
         AuditManager auditManager = sc.getAuditManager();
         if (auditManager != null)
            auditManager.audit(ae);
         else
            log.trace("Audit Manager obtained from Security Context is null");
      }
   }
View Full Code Here


      SecurityContext sc = SecurityAssociationActions.getSecurityContext();
      if (sc != null)
      {
         AuditManager auditManager = sc.getAuditManager();
         if (auditManager != null)
            auditManager.audit(ae);
         else
            log.trace("Audit Manager obtained from Security Context is null");
      }
   }
View Full Code Here

        AuditManager am = securityContext.getAuditManager();
        if(am == null)
           return;
        contextMap.put("Source", getClass().getName());
        AuditEvent ae = new AuditEvent(level,contextMap,e);
        am.audit(ae);
     }   
    
     protected Map<String,Object> getContextMap(Principal principal, String methodName)
     {
        Map<String,Object> cmap = new HashMap<String,Object>();
View Full Code Here

   public void testAuditConfiguration() throws Exception
   {
      SecurityContext sc = SecurityContextFactory.createSecurityContext("test");
      AuditManager am = sc.getAuditManager();
      AuditEvent ae = new AuditEvent(AuditLevel.ERROR);
      am.audit(ae);
     
      //Now check that the Audit Event has been placed on the thread local
      //by our TestAuditProvider
      AuditEvent aev = (AuditEvent) AuditTestAssociation.auditEventLocal.get();
      assertEquals("Audit events are the same", ae, aev);
View Full Code Here

/* 78 */     AuditManager am = this.securityContext.getAuditManager();
/* 79 */     if (am == null)
/* 80 */       return;
/* 81 */     contextMap.put("Source", getClass().getName());
/* 82 */     AuditEvent ae = new AuditEvent(level, contextMap, e);
/* 83 */     am.audit(ae);
/*    */   }
/*    */
/*    */   protected Map<String, Object> getContextMap(Principal principal, String methodName)
/*    */   {
/* 88 */     Map cmap = new HashMap();
View Full Code Here

      AuditManager am = securityContext.getAuditManager();
      if(am == null)
         return;
      contextMap.put("Source", getClass().getName());
      AuditEvent ae = new AuditEvent(level,contextMap,e);
      am.audit(ae);
   }   
  
   protected Map<String,Object> getContextMap(Principal principal, String methodName)
   {
      Map<String,Object> cmap = new HashMap<String,Object>();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.