public class DefaultIntrusionDetector extends java.lang.Object implements IntrusionDetector
IntrusionDetector| Modifier and Type | Class and Description |
|---|---|
private static class |
DefaultIntrusionDetector.Event |
| Constructor and Description |
|---|
DefaultIntrusionDetector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(java.lang.String eventName,
java.lang.String logMessage)
Adds the event to the IntrusionDetector.
|
void |
addException(java.lang.Exception e)
Adds the exception to the IntrusionDetector.
|
private void |
addSecurityEvent(User user,
java.lang.String eventName)
Adds a security event to the user.
|
private void |
takeSecurityAction(java.lang.String action,
java.lang.String message)
Take a specified security action.
|
private final Logger logger
public void addException(java.lang.Exception e)
addException in interface IntrusionDetectore - public void addEvent(java.lang.String eventName,
java.lang.String logMessage)
throws IntrusionException
addEvent in interface IntrusionDetectoreventName - the event to addlogMessage - the message to log with the eventIntrusionException - the intrusion exceptionprivate void takeSecurityAction(java.lang.String action,
java.lang.String message)
action - the action to take (log, disable, logout)message - the message to log if the action is "log"private void addSecurityEvent(User user, java.lang.String eventName)
user - The user that caused the event.eventName - The name of the event that occurred.