USM
When a user is added or removed from the USM, a UsmUserEvent is fired and forwarded to registered listeners. @author Frank Fock @version 1.2
UsmUserEvent
96979899100101102103104
super(transportMapping, retries, timeout, reportHandler); this.user = Preconditions.checkNotNull(usmUser); final USM usm = new USM(SecurityProtocols.getInstance(), new OctetString(MPv3.createLocalEngineID()), 0); SecurityModels.getInstance().addSecurityModel(usm); this.getSnmp().getUSM().addUser(usmUser); }
7273747576777879808182
} else { throw new IllegalArgumentException("Unknown protocol: " + endpoint.getProtocol()); } this.snmp = new Snmp(this.transport); this.usm = new USM(SecurityProtocols.getInstance(), new OctetString(MPv3.createLocalEngineID()), 0); SecurityModels.getInstance().addSecurityModel(usm); // setting up target target = new CommunityTarget(); target.setCommunity(new OctetString(this.endpoint.getSnmpCommunity()));