// SNMP V3 introduces the notion of SnmpEngine. An engine is
// associated to the session. Other objects might need
// the engine. You can access it using getEngine method.
//
final SnmpEngine engine = session.getEngine();
// Create an SnmpUsmPeer object for representing the entity
// to communicate with
//
final SnmpUsmPeer agentV3 = new SnmpUsmPeer(engine, remoteHost, port);