snmp.getUSM().addUser(securityName,
new UsmUser(securityName, authProtocol, authPassphrase, privProtocol, privPassphrase));
}
private Snmp createSnmpSession() throws IOException {
AbstractTransportMapping transport;
if (address instanceof TcpAddress) {
transport = new DefaultTcpTransportMapping();
} else {
transport = new DefaultUdpTransportMapping();
}