|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetwork.detectors.EventDetector
network.detectors.MultipleLoginAttemptsEventDetector
Detects if a user has tried to login a specified number of times in a specified time period. These two parameters are passed in an input file
Field Summary |
Fields inherited from class network.detectors.EventDetector |
agentURN, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, remoteTriggeringEvents, reportTable |
Constructor Summary | |
MultipleLoginAttemptsEventDetector(ConfigObject configObj)
Uses the default User file specified in AdminClient. |
|
MultipleLoginAttemptsEventDetector(java.lang.String monitorUsersFile,
ConfigObject configObj)
Uses the specified User file to instantiate this detector. |
Method Summary | |
java.util.Vector |
generateEvent(Event triggeredEvent)
Detects if a user has exceeded his log in threshold This threshold is specified in the User configuration file |
java.lang.String |
getGeneratingEventClassName()
Returns a String with the event that this class creates |
static java.lang.String[] |
getParamList()
Returns array of strings containing all the parameters that can be used as input to modify this detector. |
void |
modifyDetector(java.lang.Object object)
Allows modification of the detector as it is running |
static void |
parseMonitorUsersFile(java.lang.String monitorUsersFile,
java.util.Vector monitorUsersLoginVector)
Parses the given User configuration file. |
static java.lang.Object[] |
translateParameters(java.lang.String[] inputarray)
This function takes an array of strings from GUI which contains input and converts them to array of objects and returns. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultipleLoginAttemptsEventDetector(ConfigObject configObj) throws java.lang.Exception
public MultipleLoginAttemptsEventDetector(java.lang.String monitorUsersFile, ConfigObject configObj) throws java.lang.Exception
monitorUsersFile
- A path to a User fileMethod Detail |
public java.lang.String getGeneratingEventClassName()
getGeneratingEventClassName
in class EventDetector
public java.util.Vector generateEvent(Event triggeredEvent)
generateEvent
in class EventDetector
triggeredEvent
- The event triggering this detector. Should be an instance of ConnectEvent
public static void parseMonitorUsersFile(java.lang.String monitorUsersFile, java.util.Vector monitorUsersLoginVector) throws java.lang.Exception
monitorUsersFile
- A path to the User configuration filemonitorUsersLoginVector
- A Vector in which to store user login threshold information parsed from the input file
java.lang.Exception
public static java.lang.String[] getParamList()
public static java.lang.Object[] translateParameters(java.lang.String[] inputarray) throws java.lang.Exception
inputarray
- an array of strings that contains user inputs.
java.lang.Exception
public void modifyDetector(java.lang.Object object)
object
- An object describing how the detector should be modified. Should be an instance of PatternObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |