1 11 package com.sun.jmx.snmp.internal; 12 13 import java.net.InetAddress ; 14 import com.sun.jmx.snmp.SnmpPduFactory; 15 import com.sun.jmx.snmp.SnmpSecurityParameters; 16 import com.sun.jmx.snmp.SnmpSecurityException; 17 import com.sun.jmx.snmp.SnmpTooBigException; 18 import com.sun.jmx.snmp.SnmpStatusException; 19 import com.sun.jmx.snmp.SnmpPdu; 20 import com.sun.jmx.snmp.SnmpMsg; 21 22 import com.sun.jmx.snmp.internal.SnmpSecurityCache; 23 import com.sun.jmx.snmp.SnmpBadSecurityLevelException; 24 30 31 public interface SnmpIncomingResponse { 32 36 public InetAddress getAddress(); 37 38 42 public int getPort(); 43 44 48 public SnmpSecurityParameters getSecurityParameters(); 49 53 public void setSecurityCache(SnmpSecurityCache cache); 54 59 public int getSecurityLevel(); 60 64 public int getSecurityModel(); 65 69 public byte[] getContextName(); 70 71 79 public SnmpMsg decodeMessage(byte[] inputBytes, 80 int byteCount, 81 InetAddress address, 82 int port) 83 throws SnmpStatusException, SnmpSecurityException; 84 85 93 public SnmpPdu decodeSnmpPdu() 94 throws SnmpStatusException; 95 96 101 public int getRequestId(byte[] data) throws SnmpStatusException; 102 103 107 public String printMessage(); 108 } 109 | Popular Tags |