Examples of AuditContext


Examples of org.jboss.security.audit.AuditContext

/*  49 */     this.securityDomain = secDomain;
/*     */   }
/*     */
/*     */   public AuditContext getAuditContext() throws PrivilegedActionException
/*     */   {
/*  54 */     AuditContext ac = (AuditContext)contexts.get(this.securityDomain);
/*  55 */     if (ac == null)
/*     */     {
/*  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
/*     */             {
/*  71 */               ac.addProvider((AuditProvider)SecurityActions.loadClass(pname).newInstance());
/*     */             }
/*     */             catch (Exception e)
/*     */             {
/*  75 */               throw new RuntimeException(e);
/*     */             }
View Full Code Here

Examples of org.jboss.security.audit.AuditContext

/*  88 */     return ac;
/*     */   }
/*     */
/*     */   public static AuditContext getAuditContext(String securityDomain)
/*     */   {
/*  93 */     AuditContext ac = (AuditContext)contexts.get(securityDomain);
/*  94 */     if (ac == null)
/*  95 */       ac = defaultContext;
/*  96 */     return ac;
/*     */   }
View Full Code Here

Examples of org.jboss.security.audit.AuditContext

/* 101 */     contexts.put(securityDomain, ac);
/*     */   }
/*     */
/*     */   public void audit(AuditEvent ae)
/*     */   {
/* 106 */     AuditContext ac = null;
/*     */     try
/*     */     {
/* 109 */       ac = getAuditContext();
/*     */     }
/*     */     catch (PrivilegedActionException e)
/*     */     {
/* 113 */       throw new RuntimeException(e);
/*     */     }
/* 115 */     ac.audit(ae);
/*     */
/* 117 */     if (ac != defaultContext)
/*     */     {
/* 119 */       defaultContext.audit(ae);
/*     */     }
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.