org.owasp.esapi.interfaces
Interface IIntrusionDetector

All Known Implementing Classes:
IntrusionDetector

public interface IIntrusionDetector

The IIntrusionDetector interface is intended to track security relevant events and identify attack behavior. The implementation can use as much state as necessary to detect attacks, but note that storing too much state will burden your system.

The interface is currently designed to accept exceptions as well as custom events. Implementations can use this stream of information to detect both normal and abnormal behavior.

Since:
June 1, 2007
Author:
Jeff Williams (jeff.williams .at. aspectsecurity.com) Aspect Security

Method Summary
 void addEvent(java.lang.String eventName)
          Adds the event to the IntrusionDetector.
 void addException(java.lang.Exception exception)
          Adds the exception to the IntrusionDetector.
 

Method Detail

addException

public void addException(java.lang.Exception exception)
                  throws IntrusionException
Adds the exception to the IntrusionDetector.

Parameters:
exception - the exception
Throws:
IntrusionException - the intrusion exception

addEvent

public void addEvent(java.lang.String eventName)
              throws IntrusionException
Adds the event to the IntrusionDetector.

Parameters:
eventName - the event
Throws:
IntrusionException - the intrusion exception