1 11 package com.sun.jmx.snmp.internal; 12 13 import java.util.Vector ; 14 import com.sun.jmx.snmp.SnmpMsg; 15 import com.sun.jmx.snmp.SnmpParams; 16 import com.sun.jmx.snmp.SnmpPdu; 17 import com.sun.jmx.snmp.SnmpVarBind; 18 import com.sun.jmx.snmp.SnmpStatusException; 19 import com.sun.jmx.snmp.SnmpTooBigException; 20 import com.sun.jmx.snmp.SnmpPduFactory; 21 import com.sun.jmx.snmp.SnmpSecurityParameters; 22 23 import com.sun.jmx.snmp.SnmpUnknownMsgProcModelException; 24 25 31 public interface SnmpMsgProcessingSubSystem extends SnmpSubSystem { 32 33 37 public void setSecuritySubSystem(SnmpSecuritySubSystem security); 38 41 public SnmpSecuritySubSystem getSecuritySubSystem(); 42 43 49 public SnmpIncomingRequest getIncomingRequest(int model, 50 SnmpPduFactory factory) 51 throws SnmpUnknownMsgProcModelException; 52 58 public SnmpOutgoingRequest getOutgoingRequest(int model, 59 SnmpPduFactory factory) throws SnmpUnknownMsgProcModelException ; 60 67 public SnmpPdu getRequestPdu(int model, SnmpParams p, int type) throws SnmpUnknownMsgProcModelException, SnmpStatusException ; 68 74 public SnmpIncomingResponse getIncomingResponse(int model, 75 SnmpPduFactory factory) throws SnmpUnknownMsgProcModelException; 76 92 public int encode(int version, 93 int msgID, 94 int msgMaxSize, 95 byte msgFlags, 96 int msgSecurityModel, 97 SnmpSecurityParameters params, 98 byte[] contextEngineID, 99 byte[] contextName, 100 byte[] data, 101 int dataLength, 102 byte[] outputBytes) 103 throws SnmpTooBigException, 104 SnmpUnknownMsgProcModelException ; 105 118 public int encodePriv(int version, 119 int msgID, 120 int msgMaxSize, 121 byte msgFlags, 122 int msgSecurityModel, 123 SnmpSecurityParameters params, 124 byte[] encryptedPdu, 125 byte[] outputBytes) throws SnmpTooBigException, SnmpUnknownMsgProcModelException; 126 127 133 public SnmpDecryptedPdu decode(int version, 134 byte[] pdu) 135 throws SnmpStatusException, SnmpUnknownMsgProcModelException; 136 137 144 public int encode(int version, 145 SnmpDecryptedPdu pdu, 146 byte[] outputBytes) 147 throws SnmpTooBigException, SnmpUnknownMsgProcModelException; 148 } 149 150 151 | Popular Tags |