1 11 package com.sun.jmx.snmp.internal; 12 13 import com.sun.jmx.snmp.SnmpSecurityException; 14 import com.sun.jmx.snmp.SnmpStatusException; 15 import com.sun.jmx.snmp.SnmpTooBigException; 16 import com.sun.jmx.snmp.SnmpSecurityParameters; 17 18 24 public interface SnmpSecurityModel extends SnmpModel { 25 42 public int generateRequestMsg(SnmpSecurityCache cache, 43 int version, 44 int msgID, 45 int msgMaxSize, 46 byte msgFlags, 47 int msgSecurityModel, 48 SnmpSecurityParameters params, 49 byte[] contextEngineID, 50 byte[] contextName, 51 byte[] data, 52 int dataLength, 53 byte[] outputBytes) 54 throws SnmpTooBigException, SnmpStatusException, 55 SnmpSecurityException; 56 57 74 public int generateResponseMsg(SnmpSecurityCache cache, 75 int version, 76 int msgID, 77 int msgMaxSize, 78 byte msgFlags, 79 int msgSecurityModel, 80 SnmpSecurityParameters params, 81 byte[] contextEngineID, 82 byte[] contextName, 83 byte[] data, 84 int dataLength, 85 byte[] outputBytes) 86 throws SnmpTooBigException, SnmpStatusException, 87 SnmpSecurityException; 88 106 public SnmpSecurityParameters 107 processIncomingRequest(SnmpSecurityCache cache, 108 int version, 109 int msgID, 110 int msgMaxSize, 111 byte msgFlags, 112 int msgSecurityModel, 113 byte[] params, 114 byte[] contextEngineID, 115 byte[] contextName, 116 byte[] data, 117 byte[] encryptedPdu, 118 SnmpDecryptedPdu decryptedPdu) 119 throws SnmpStatusException, SnmpSecurityException; 120 138 public SnmpSecurityParameters processIncomingResponse(SnmpSecurityCache cache, 139 int version, 140 int msgID, 141 int msgMaxSize, 142 byte msgFlags, 143 int msgSecurityModel, 144 byte[] params, 145 byte[] contextEngineID, 146 byte[] contextName, 147 byte[] data, 148 byte[] encryptedPdu, 149 SnmpDecryptedPdu decryptedPdu) 150 throws SnmpStatusException, SnmpSecurityException; 151 152 156 public SnmpSecurityCache createSecurityCache(); 157 161 public void releaseSecurityCache(SnmpSecurityCache cache); 162 } 163 | Popular Tags |