1 11 package com.sun.jmx.snmp.internal; 12 13 import java.net.InetAddress ; 14 15 import com.sun.jmx.snmp.SnmpSecurityParameters; 16 import com.sun.jmx.snmp.SnmpTooBigException; 17 import com.sun.jmx.snmp.SnmpStatusException; 18 import com.sun.jmx.snmp.SnmpPdu; 19 import com.sun.jmx.snmp.SnmpMsg; 20 21 import com.sun.jmx.snmp.SnmpUnknownSecModelException; 22 import com.sun.jmx.snmp.SnmpBadSecurityLevelException; 23 24 34 public interface SnmpIncomingRequest { 35 39 public SnmpSecurityParameters getSecurityParameters(); 40 44 public boolean isReport(); 45 49 public boolean isResponse(); 50 51 54 public void noResponse(); 55 59 public String getPrincipal(); 60 64 public int getSecurityLevel(); 65 69 public int getSecurityModel(); 70 74 public byte[] getContextName(); 75 79 public byte[] getContextEngineId(); 80 83 public byte[] getAccessContext(); 84 92 public int encodeMessage(byte[] outputBytes) 93 throws SnmpTooBigException; 94 95 102 public void decodeMessage(byte[] inputBytes, 103 int byteCount, 104 InetAddress address, 105 int port) 106 throws SnmpStatusException, SnmpUnknownSecModelException, 107 SnmpBadSecurityLevelException; 108 109 125 public SnmpMsg encodeSnmpPdu(SnmpPdu p, 126 int maxDataLength) 127 throws SnmpStatusException, SnmpTooBigException; 128 129 137 public SnmpPdu decodeSnmpPdu() 138 throws SnmpStatusException; 139 140 144 public String printRequestMessage(); 145 149 public String printResponseMessage(); 150 } 151 | Popular Tags |