[SNMP4J] AgentConfigManager's getVACM() method returns null.

Mark A. Flacy mflacy at verizon.net
Thu May 19 09:58:59 CEST 2011


Greetings,

In both of the AgentConfigManager's constructors, the JavaDoc for the
vacm parameter mentions "Typically, this parameter is set to null to use
the default VACM associated with the VacmMIB."

The javadoc for AgentConfigManager.getVACM() states "Returns the VACM
used by this agent config manager."

That isn't the case.  The getVACM() method returns the VACM object given
in the constructor.  If you use null in the constructor, getVACM()
returns null instead of a reference to the vacmMIB attribute which is
what it is actually using.

I'd much prefer for getVACM() to actually return the VACM object used in
this case (the default VacmMIB) versus the null that I passed in via the
constructor.

-- 
Mark A. Flacy <mflacy at verizon.net>




More information about the SNMP4J mailing list