@Test public void testUsmSeparation() { assertNotSame(snmpCommandGenerator.getUSM(), snmpCommandResponder.getUSM()); }
public USM getUSM() { MPv3 mp = (MPv3) getMessageProcessingModel(MPv3.ID); if (mp != null) { return (USM)mp.getSecurityModel(SecurityModel.SECURITY_MODEL_USM); } return null; }
Snmp implements Session, CommandResponder { public USM getUSM() { MPv3 mp = (MPv3) getMessageProcessingModel(MPv3.ID); if (mp != null) { return (USM)mp.getSecurityModel(SecurityModel.SECURITY_MODEL_USM); } return null; } }
Snmp implements Session, CommandResponder { public USM getUSM() { MPv3 mp = (MPv3) getMessageProcessingModel(MPv3.ID); if (mp != null) { return (USM)mp.getSecurityModel(SecurityModel.SECURITY_MODEL_USM); } return null; } Snmp();  Snmp(TransportMapping transportMapping);  Snmp(MessageDispatcher messageDispatcher,
              TransportMapping transportMapping);  Snmp(MessageDispatcher messageDispatcher); }
Snmp implements Session, CommandResponder { public USM getUSM() { MPv3 mp = (MPv3) getMessageProcessingModel(MPv3.ID); if (mp != null) { return (USM)mp.getSecurityModel(SecurityModel.SECURITY_MODEL_USM); } return null; } Snmp();  Snmp(TransportMapping transportMapping);  Snmp(MessageDispatcher messageDispatcher,
              TransportMapping transportMapping);  Snmp(MessageDispatcher messageDispatcher); MessageDispatcher getMessageDispatcher(); void addTransportMapping(TransportMapping transportMapping); void removeTransportMapping(TransportMapping<Address> transportMapping); synchronized boolean addNotificationListener(Address listenAddress,
                                                      CommandResponder listener); synchronized boolean removeNotificationListener(Address listenAddress); void listen(); int getNextRequestID(); void close(); ResponseEvent get(PDU pdu, Target target); void get(PDU pdu, Target target, Object userHandle,
                  ResponseListener listener); ResponseEvent getNext(PDU pdu, Target target); void getNext(PDU pdu, Target target, Object userHandle,
                      ResponseListener listener); ResponseEvent getBulk(PDU pdu, Target target); void getBulk(PDU pdu, Target target, Object userHandle,
                      ResponseListener listener); ResponseEvent inform(PDU pdu, Target target); void inform(PDU pdu, Target target, Object userHandle,
                     ResponseListener listener); void trap(PDUv1 pdu, Target target); void notify(PDU pdu, Target target); ResponseEvent set(PDU pdu, Target target); void set(PDU pdu, Target target, Object userHandle,
                  ResponseListener listener); ResponseEvent send(PDU pdu, Target target); ResponseEvent send(PDU pdu, Target target,
                            TransportMapping transport); void send(PDU pdu, Target target,
                   Object userHandle,
                   ResponseListener listener); void send(PDU pdu, Target target,
                   TransportMapping transport,
                   Object userHandle,
                   ResponseListener listener); void cancel(PDU request, ResponseListener listener); void setLocalEngine(byte[] engineID,
                             int engineBoots,
                             int engineTime); byte[] getLocalEngineID(); byte[] discoverAuthoritativeEngineID(Address address, long timeout); USM getUSM(); MessageProcessingModel getMessageProcessingModel(int
      messageProcessingModel); void processPdu(CommandResponderEvent event); boolean isContextEngineIdDiscoveryDisabled(); void setContextEngineIdDiscoveryDisabled(boolean contextEngineIdDiscoveryDisabled); synchronized void removeCommandResponder(CommandResponder listener); synchronized void addCommandResponder(CommandResponder listener); TimeoutModel getTimeoutModel(); ReportHandler getReportHandler(); void setTimeoutModel(TimeoutModel timeoutModel); void setReportHandler(ReportHandler reportHandler); }
Snmp implements Session, CommandResponder { public USM getUSM() { MPv3 mp = (MPv3) getMessageProcessingModel(MPv3.ID); if (mp != null) { return (USM)mp.getSecurityModel(SecurityModel.SECURITY_MODEL_USM); } return null; } Snmp();  Snmp(TransportMapping transportMapping);  Snmp(MessageDispatcher messageDispatcher,
              TransportMapping transportMapping);  Snmp(MessageDispatcher messageDispatcher); MessageDispatcher getMessageDispatcher(); void addTransportMapping(TransportMapping transportMapping); void removeTransportMapping(TransportMapping<Address> transportMapping); synchronized boolean addNotificationListener(Address listenAddress,
                                                      CommandResponder listener); synchronized boolean removeNotificationListener(Address listenAddress); void listen(); int getNextRequestID(); void close(); ResponseEvent get(PDU pdu, Target target); void get(PDU pdu, Target target, Object userHandle,
                  ResponseListener listener); ResponseEvent getNext(PDU pdu, Target target); void getNext(PDU pdu, Target target, Object userHandle,
                      ResponseListener listener); ResponseEvent getBulk(PDU pdu, Target target); void getBulk(PDU pdu, Target target, Object userHandle,
                      ResponseListener listener); ResponseEvent inform(PDU pdu, Target target); void inform(PDU pdu, Target target, Object userHandle,
                     ResponseListener listener); void trap(PDUv1 pdu, Target target); void notify(PDU pdu, Target target); ResponseEvent set(PDU pdu, Target target); void set(PDU pdu, Target target, Object userHandle,
                  ResponseListener listener); ResponseEvent send(PDU pdu, Target target); ResponseEvent send(PDU pdu, Target target,
                            TransportMapping transport); void send(PDU pdu, Target target,
                   Object userHandle,
                   ResponseListener listener); void send(PDU pdu, Target target,
                   TransportMapping transport,
                   Object userHandle,
                   ResponseListener listener); void cancel(PDU request, ResponseListener listener); void setLocalEngine(byte[] engineID,
                             int engineBoots,
                             int engineTime); byte[] getLocalEngineID(); byte[] discoverAuthoritativeEngineID(Address address, long timeout); USM getUSM(); MessageProcessingModel getMessageProcessingModel(int
      messageProcessingModel); void processPdu(CommandResponderEvent event); boolean isContextEngineIdDiscoveryDisabled(); void setContextEngineIdDiscoveryDisabled(boolean contextEngineIdDiscoveryDisabled); synchronized void removeCommandResponder(CommandResponder listener); synchronized void addCommandResponder(CommandResponder listener); TimeoutModel getTimeoutModel(); ReportHandler getReportHandler(); void setTimeoutModel(TimeoutModel timeoutModel); void setReportHandler(ReportHandler reportHandler);  }