Examples of 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

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

        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

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

   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

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

/* 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

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

      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

Examples of org.picketlink.identity.federation.core.audit.PicketLinkAuditHelper.audit()

            if (!isValid) {
                if (auditHelper != null) {
                    PicketLinkAuditEvent auditEvent = new PicketLinkAuditEvent(AuditLevel.INFO);
                    auditEvent.setWhoIsAuditing((String) requestOptions.get(GeneralConstants.CONTEXT_PATH));
                    auditEvent.setType(PicketLinkAuditEventType.ERROR_SIG_VALIDATION);
                    auditHelper.audit(auditEvent);
                }

                throw constructSignatureException();
            }
        } catch (ProcessingException pe) {
View Full Code Here

Examples of org.picketlink.identity.federation.core.audit.PicketLinkAuditHelper.audit()

        } catch (ProcessingException pe) {
            if (auditHelper != null) {
                PicketLinkAuditEvent auditEvent = new PicketLinkAuditEvent(AuditLevel.INFO);
                auditEvent.setWhoIsAuditing((String) requestOptions.get(GeneralConstants.CONTEXT_PATH));
                auditEvent.setType(PicketLinkAuditEventType.ERROR_SIG_VALIDATION);
                auditHelper.audit(auditEvent);
            }
            response.setError(SAML2HandlerErrorCodes.SIGNATURE_INVALID, "Signature Validation Failed");
            throw pe;
        }
    }
View Full Code Here

Examples of org.picketlink.identity.federation.core.audit.PicketLinkAuditHelper.audit()

                if (auditHelper != null) {
                    PicketLinkAuditEvent auditEvent = new PicketLinkAuditEvent(AuditLevel.INFO);
                    auditEvent.setWhoIsAuditing((String) requestOptions.get(GeneralConstants.CONTEXT_PATH));
                    auditEvent.setType(PicketLinkAuditEventType.CREATED_ASSERTION);
                    auditEvent.setAssertionID(id);
                    auditHelper.audit(auditEvent);
                }

                // Save AuthnRequest ID into sharedState, so that we can later process it by another handler
                request.addOption(GeneralConstants.AUTH_REQUEST_ID, id);
            } catch (Exception e) {
View Full Code Here

Examples of org.picketlink.identity.federation.core.audit.PicketLinkAuditHelper.audit()

            if (auditHelper != null) {
                PicketLinkAuditEvent auditEvent = new PicketLinkAuditEvent(AuditLevel.INFO);
                auditEvent.setWhoIsAuditing((String) requestOptions.get(GeneralConstants.CONTEXT_PATH));
                auditEvent.setType(PicketLinkAuditEventType.CREATED_ASSERTION);
                auditEvent.setAssertionID(id);
                auditHelper.audit(auditEvent);
            }

            try {
                samlResponseDocument = saml2Response.convert(responseType);
View Full Code Here

Examples of org.picketlink.identity.federation.core.audit.PicketLinkAuditHelper.audit()

                        }
                        if (auditHelper != null) {
                            PicketLinkAuditEvent auditEvent = new PicketLinkAuditEvent(AuditLevel.INFO);
                            auditEvent.setWhoIsAuditing(contextPath);
                            auditEvent.setType(PicketLinkAuditEventType.ERROR_TRUSTED_DOMAIN);
                            auditHelper.audit(auditEvent);
                        }
                        throw logger.samlIssuerNotTrustedError(issuer);
                    }
                } else
                    throw logger.samlHandlerTrustElementMissingError();
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.