|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetwork.detectors.EventDetector
network.detectors.InvalidUserAlarmEventDetector
This detector analyzes ConnectEvents to see if their initiating user's
username is on the validUsers list. If it is not, an InvalidUserAlarmEvent
is generated. An example validUsers file is:
root
user1
user2
userX
Field Summary |
Fields inherited from class network.detectors.EventDetector |
agentURN, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, remoteTriggeringEvents, reportTable |
Constructor Summary | |
InvalidUserAlarmEventDetector(ConfigObject configObj)
The default constructor. |
|
InvalidUserAlarmEventDetector(java.lang.String validUsersFile,
ConfigObject configObj)
This constructor takes as argument a validUsers file (normally, $NETMON/network/config/validUsers. |
Method Summary | |
java.util.Vector |
generateEvent(Event triggeredEvent)
This method is triggered by a ConnectEvent. |
java.lang.String |
getGeneratingEventClassName()
Returns the fully-qualified classname of the event that this detector may generate. |
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 policy. |
static void |
parseValidUsersFile(java.lang.String validUsersFile,
java.util.Vector validUsersList)
Parses a validUsers file, and stores the individual lines in a vector that the user supplies. |
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 InvalidUserAlarmEventDetector(ConfigObject configObj)
network.AdminClient.
public InvalidUserAlarmEventDetector(java.lang.String validUsersFile, ConfigObject configObj)
validUsersFile
- path to a validUsers 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 that triggered the detector.
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
- a network.PatternObject containing data and action.
network.PatternObject
public static void parseValidUsersFile(java.lang.String validUsersFile, java.util.Vector validUsersList)
validUsersFile
- path to validUsers file.validUsersList
- a vector to be filled with usernames from the file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |