SNMP4J 3.4.0 has been released 2020-03-04T23:00:00Z which an notable new feature implemented around the new class DirectUserTarget:
With that new class, USM users for confirmed requests can be directly provided to the Snmp session/TransportMapping respectively without the need to add the UsmUser to the USM beforehand.
See the following FAQ article for details and an example:
https://doc.snmp.app/pages/viewpage.action?pageId=42369028
Dependencies
- Java 9 or later
CHANGES
- Added [SFJ-216]: Added support for
USMlocalised keys directly inDirectUserTargetwhich allows sending request and receiving their responses without previously adding theUSMuser to theUSMmodel. Instead the new classDirectUserTargetcan be used to fully specify a SNMPv3 USM user target. - Added:
SecurityProtocols.getSecurityProtocolOIDs,Snmnp.setLocalizedUserCredentials,Snmp.createLocalizedUsmUserEntrymethods to better support SFJ-216. - Fixed SFJ-196:
UsmUsergot storage type from existing entry when the same user is loaded from persistent storage which is incorrect for storage types less thanpermanent(4). - Added:
SecurityProtocols.getSecurityProtocolOIDsmethod. - Added:
OctetString.fromStringto create null-safe an OctetString object from a Java String. - Changed:
OctetString.from*** methods are now null-safe, i.e. those methods return null instead of trowing aNullPointerExceptionif the provided value is null.