java.lang.Object
java.util.EventObject
org.snmp4j.event.UsmUserEvent
- All Implemented Interfaces:
Serializable
This Event is issued whenever a user of the
USM
is created
modified or deleted.- Version:
- 1.0
- Author:
- Frank Fock
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Constant: a new user was created.static final int
Constant: a user was changed (but not deleted).static final int
Constant: a user was deleted.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionUsmUserEvent
(SecurityModel source, UsmUserEntry changedEntry, int type) Construct a UsmUserEvent. -
Method Summary
Modifier and TypeMethodDescriptionint
getType()
Return the type of operation that triggered this event.getUser()
Get the modified entry of theUsmUserTable
.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
USER_ADDED
public static final int USER_ADDEDConstant: a new user was created.- See Also:
-
USER_REMOVED
public static final int USER_REMOVEDConstant: a user was deleted.- See Also:
-
USER_CHANGED
public static final int USER_CHANGEDConstant: a user was changed (but not deleted).- See Also:
-
-
Constructor Details
-
UsmUserEvent
Construct a UsmUserEvent.- Parameters:
source
- the object that emitts this eventchangedEntry
- the changed entrytype
- can be USER_ADDED, USER_REMOVED or USER_CHANGED.
-
-
Method Details
-
getUser
Get the modified entry of theUsmUserTable
.- Returns:
- the entry
- after the modification if the user was added or modified
- before the modification if the user was deleted
-
getType
public int getType()Return the type of operation that triggered this event.- Returns:
- One of USER_ADDED, USER_REMOVED or USER_CHANGED.
-