SNMPv3 Notifications and VACM access

Thanks!

I finally realized my mistake.

The securityname from the group is associated with the target notification
ie.

vacm.addGroup(
	        SecurityModel.SECURITY_MODEL_USM,
	        new OctetString(securityName),
	        new OctetString("v3group"),
	        StorageType.nonVolatile
	      );




protected void addNotificationTargets(SnmpTargetMIB targetMIB,
		SnmpNotificationMIB notificationMIB) 
{
    targetMIB.addDefaultTDomains();
    targetMIB.addTargetAddress(new OctetString("notificationV3"),
                               TransportDomains.transportDomainUdpIpv4,
                               new OctetString(new UdpAddress("127.0.0.1/1162").getValue()),
                               200, 1,
                               new OctetString("notify"),
                               new OctetString(securityName),
                               StorageType.nonVolatile);
    targetMIB.addTargetParams(new OctetString(securityName),
                              MessageProcessingModel.MPv3,
                              SecurityModel.SECURITY_MODEL_USM,
                              new OctetString(securityName),
                              SecurityLevel.AUTH_PRIV,
                              StorageType.nonVolatile);
    notificationMIB.addNotifyEntry(new OctetString("default"),
                                   new OctetString("notify"),
                                   SnmpNotificationMIB.SnmpNotifyTypeEnum.inform,
                                   StorageType.nonVolatile);

In this way, the group name is “v3group”, security name is “securityName”.

Thanks Frank!!!