Package com.denimgroup.threadfix.data.entities

Examples of com.denimgroup.threadfix.data.entities.SecurityEvent


  private final SanitizedLogger log = new SanitizedLogger(SecurityEventController.class);

  @RequestMapping("/{eventId}")
  public ModelAndView detail(@PathVariable("eventId") int eventId) {
    SecurityEvent securityEvent = securityEventService.loadSecurityEvent(eventId);
    if (securityEvent != null) {
      ModelAndView mav = new ModelAndView("wafs/events/detail");
      mav.addObject(securityEvent);
      return mav;
    } else {
View Full Code Here


                if (calendar == null) {
                    log.error("can't parse logline (timestamp): " + entry);
                    return null;
                }

                SecurityEvent event = new SecurityEvent();

                event.setWafRule(rule);
                event.setImportTime(calendar);
                event.setLogText(csvFreeText);

                event.setAttackType("deny");
                //if (csvRulesetMode == WAF_LOG_MODE_PROTECTION)
                //{
                //    event.setAttackType("deny");
                //} else {
                //    event.setAttackType("log");
                //}
                event.setNativeId(nativeId);
                event.setAttackerIP(csvClientIP);


                return event;
            }
        } catch (IOException e) {
View Full Code Here

    if (rule == null)
      return null;
   
    Calendar calendar = parseDate(time);
   
    SecurityEvent event = new SecurityEvent();
   
    event.setWafRule(rule);
    event.setImportTime(calendar);
    event.setLogText(entry);
    event.setAttackType(type);
    event.setNativeId(nativeId);
    event.setAttackerIP(attackerIP);
   
    return event;
  }
View Full Code Here

    WafRule rule = wafRuleDao.retrieveByWafAndNativeId(wafId, sid);
    if (rule == null)
      return null;
    Calendar calendar = parseDate(time);
   
    SecurityEvent event = new SecurityEvent();
   
    event.setWafRule(rule);
    event.setImportTime(calendar);
    event.setLogText(entry);
    event.setAttackType(type);
    event.setNativeId(nativeId);
    event.setAttackerIP(attackerIP);
   
    return event;
  }
View Full Code Here

    String line = null;

    try {
      while ((line = bufferedReader.readLine()) != null) {
        SecurityEvent event = getSecurityEvent(line);
        if (event != null)
          events.add(event);
      }
      bufferedReader.close();
    } catch (IOException e) {
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.data.entities.SecurityEvent

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.