My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**
* OWASP Enterprise Security API (ESAPI)
*
* This file is part of the Open Web Application Security Project (OWASP)
* Enterprise Security API (ESAPI) project. For details, please see
* <a href="http://www.owasp.org/index.php/ESAPI">http://www.owasp.org/index.php/ESAPI</a>.
*
* Copyright (c) 2007 - The OWASP Foundation
*
* The ESAPI is published by OWASP under the BSD license. You should read and accept the
* LICENSE before you use, modify, and/or redistribute this software.
*
* @author Jeff Williams <a href="http://www.aspectsecurity.com">Aspect Security</a>
* @created 2007
*/
package org.owasp.esapi;

import org.owasp.esapi.errors.IntrusionException;


/**
* The IntrusionDetector 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.
* <P>
* 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.
*
* @author Jeff Williams (jeff.williams .at. aspectsecurity.com) <a href="http://www.aspectsecurity.com">Aspect Security</a>
* @since June 1, 2007
*/
public interface IntrusionDetector {

/**
* Adds the exception to the IntrusionDetector. This method should immediately log the exception so that developers throwing an
* IntrusionException do not have to remember to log every error. The implementation should store the exception somewhere for the current user
* in order to check if the User has reached the threshold for any Enterprise Security Exceptions. The User object is the recommended location for storing
* the current user's security exceptions. If the User has reached any security thresholds, the appropriate security action can be taken and logged.
*
* @param exception
* the exception thrown
*
* @throws IntrusionException
* the intrusion exception
*/
void addException(Exception exception) throws IntrusionException;

/**
* Adds the event to the IntrusionDetector. This method should immediately log the event. The implementation should store the event somewhere for the current user
* in order to check if the User has reached the threshold for any Enterprise Security Exceptions. The User object is the recommended location for storing
* the current user's security event. If the User has reached any security thresholds, the appropriate security action can be taken and logged.
*
* @param eventName
* the event to add
* @param logMessage
* the message to log with the event
*
* @throws IntrusionException
* the intrusion exception
*/
void addEvent(String eventName, String logMessage) throws IntrusionException;

}

Change log

r1561 by manico.james on Oct 13, 2010   Diff
removed old-school powerpoint images from
JavaDoc
Go to: 
Sign in to write a code review

Older revisions

r387 by planetlevel on Dec 4, 2008   Diff
Move to Maven and revamp the resource
loading scheme
All revisions of this file

File info

Size: 2992 bytes, 63 lines
Powered by Google Project Hosting