1 20 21 package org.snmp4j.event; 22 23 import java.util.EventObject ; 24 import org.snmp4j.security.UsmUserEntry; 25 import org.snmp4j.security.USM; 27 import org.snmp4j.security.UsmUserTable; 28 29 36 public class UsmUserEvent extends EventObject { 37 38 private static final long serialVersionUID = -2650579887988635391L; 39 40 43 public static final int USER_ADDED = 1; 44 45 48 public static final int USER_REMOVED = 2; 49 50 53 public static final int USER_CHANGED = 3; 54 55 private org.snmp4j.security.UsmUserEntry user; 56 private int type; 57 58 68 public UsmUserEvent(Object source, UsmUserEntry changedEntry, int type) { 69 super(source); 70 this.user = changedEntry; 71 this.type = type; 72 } 73 74 81 public org.snmp4j.security.UsmUserEntry getUser() { 82 return user; 83 } 84 85 90 public int getType() { 91 return type; 92 } 93 } 94 | Popular Tags |