public void clearUsers() { if (m_usm != null) { m_usm.removeAllUsers(); } }
public void clearUsers() { if (m_usm != null) { m_usm.removeAllUsers(); } }
/** * Removes all USM user from the internal user name table with the specified user * name. This is the same as {@link #removeAllUsers(org.snmp4j.smi.OctetString, org.snmp4j.smi.OctetString)} * with engineID set to {@code null}. * * @param userName * a user name. * * @return the removed {@code UsmUser} instances as a List. If the user could * be found, an empty list is returned. * @since 2.2 */ public List<UsmUser> removeAllUsers(OctetString userName) { return removeAllUsers(userName, null); }
/** * Removes all USM user from the internal user name table with the specified user * name. This is the same as {@link #removeAllUsers(org.snmp4j.smi.OctetString, org.snmp4j.smi.OctetString)} * with engineID set to {@code null}. * * @param userName * a user name. * @return * the removed {@code UsmUser} instances as a List. If the user could * be found, an empty list is returned. * @since * 2.2 */ public List<UsmUser> removeAllUsers(OctetString userName) { return removeAllUsers(userName, null); }
if (entry != null) { usm.removeAllUsers(entry.getUserName(), entry.getEngineID()); UsmUserEntry entry = row.getUserEntry(); if (entry != null) { usm.removeAllUsers(entry.getUserName(), entry.getEngineID());